Hi
I made a new car controller script in Unity 5
public float speed =10.0f;
public float reverseSpeed =5.0f;
public float turnSpeed =0.6f;
private float moveDirection =0.0f;
private float turnDirection =0.0f;
private Rigidbody rb;
// Use this for initialization
void Start () {
rb= GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update ()
{
moveDirection = Input.GetAxis("vertical") * speed ;
rb.AddRelativeForce(0,0, moveDirection);
}
Initiall the console does not show any error and the game mode starts but then the car does not move and the error pops up at the bottom
Input Axis vertical not defined