SO im trying to test this
var Rotationspeed = 100;
function Update () {
var rotation : float = Input.GetAxis ("Horizontal") * Rotationspeed;
rotation *= Time.deltaTime;
UnityEngine.Rigidbody();
Rigidbody.AddRelativeTorque (Vector3.back * rotation);
BUT I GOT LIKE ONLY 1 FREAKIN ERROR AND ITS FUSTRATING ME.
it says an instance of type 'UnityEngine.Rigidbody' is required to acess non static memeber 'addrelevativetorque'
HELP
↧