In my game i have my character facing a wall. Behind it though, there is a high poly city. Depending on the frame rate, the character rotates slower or faster depending on the frame rate. Here is my script.
function Update ()
{
{
var controller : CharacterController = GetComponent(CharacterController);
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
}
}
Thanks for your help.