Hey!

I’ve been looking at the videos and references and this place… But I can’t for the life of me figure out how to rotate 35 degrees to either the right or the left. Smoothly. I can make the character rotate, but it snaps back and forth. So I though the Lerp function would work. Or Slerp… Though I have no idea how to use them. (: If anyone can help, it would be much appreciated!!

~WM

EDIT:

```
using UnityEngine;
using System.Collections;
public class LeaningScript: MonoBehaviour {
public float smooth = 6f;
public float target = 35f;
// Update is called once per frame
void Update () {
if (Input.GetKeyDown (KeyCode.Q)) {
float angle = Mathf.MoveTowardsAngle (transform.eulerAngles.z, target, smooth * Time.deltaTime);
transform.eulerAngles = Vector3 (0, 0, 35);
}
if (Input.GetKeyDown (KeyCode.E)) {
float angle = Mathf.MoveTowardsAngle(transform.eulerAngles.z, target, smooth * Time.deltaTime);
transform.eulerAngles = Vector3(0, 0, -35);
}
}
}
```

So not quite sure what I’m doing wrong…?

Assets/LeaningScript.cs(14,49): error CS0119: Expression denotes a `type', where a `

variable’, `value' or `

method group’ was expected