So I was just watching the Unity tutorials by Brackey on youtube and he helped me write my first script to make a ball move, but i get errors. This is how it looks.
#pragma strict
var rotationSpeed = 100;
function Update ()
{
var rotaion : float = Input.GetAxis (“Horizontal”) * rotationSpeed;
rotation *= Time.deltaTime;
rigidbody.AddRelativeTorque (Vector3.back * rotation);
}
And the errors is saying that rotation is an unknown identifier.
So if anyone could help me with this little problem I’d be gratefull.