Ball Rolling is not working
I tried an old tutorial on how to make a boll rolling game. I copied every thing but it is not working. Did I forget something or is it something within Unity. Thanks! That is my script. My errors say it has to do with the rigidbody line.
pragma strict
var rotationSpeed = 100;
function Update () { var rotation : float = Input.GetAxis ("Horizontal") rotationSpeed; rotation = Time.deltaTime; rigidbody.AddRelativeTorque (Vector3.back * rotation); }
Comment