[1]Hello, I need help with this script because i don’t understand the problem
#pragma strict
var rotationSpeed = 100;
function Update ()
{
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
rotation *= Time.deltaTime;
UnityEngine.Rigidbody.AddRelativeTorque (Vector3.back * rotation);
}
[15011-без+име.png|15011]