I made a car controller and it works, the car moves. but the problem is that it needs input to move forward. But in the game that i'm making, it has to go forward constantly. And input will be used to go left, right and backwards.
How to i make it go constantly forward ?
Here is the input part of my code.
private void GetInputs()
{
inputX = Input.GetAxis("Horizontal");
inputY = Input.GetAxis("Vertical");
}
↧