i need help with a peice of code hats been driving me insane its java script to get a vehicle to move in unity3d
var Speed = 10;
var Reverse = 2;
var Turning = 15;
function Update ()
{
rigidbody.AddRelativeForce{Vector3.forward*Input.GetAxis{*Vertical*} * Speed};
transform.rotate{Vector3.up * Turning * Input.Getaxis{*horizontal*};
}
var Speed = 10;
var Reverse = 2;
var Turning = 15;
function Update ()
{
rigidbody.AddRelativeForce{Vector3.forward*Input.GetAxis{*Vertical*} * Speed};
transform.rotate{Vector3.up * Turning * Input.Getaxis{*horizontal*};
}