these are the errors i’m having trouble with
Assets/BallControl.js(8,28): BCE0043: Unexpected token: ,.
Assets/BallControl.js(8,29): UCE0001: ‘;’ expected. Insert a semicolon at the end.
Assets/BallControl.js(9,57): UCE0001: ‘;’ expected. Insert a semicolon at the end.
this is the script im using
1#pragma strict
2
3var rotationSpeed = 100;
4
5function Update ()
6 {
7 var rotation : float = Input.GetAxis (“Horizontal”) * rotationSpeed;
8 rotation *= Time.deltaTime;
9 rigidbody.AddRelativeTorque (Vector3.back * rotation);