You are on page 1of 1

class notes

{var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;


rotation *= Time.deltaTime;
GetComponent.<Rigidbody>().AddRelativeTorque (Vector3.left * rotation);

var xrotation : float = Input.GetAxis ("Vertical") * rotationSpeed;


rotation *= Time.deltaTime;
GetComponent.<Rigidbody>().AddRelativeTorque (Vector3.left * rotation);
}
}

You might also like