I have a game with a fixed 2D camera angle, with a car that drives from left to right. I got the car moving with wheel colliders and basic motor script but for the purposes of gameplay I’d like the car to automatically brake whenever the player lets off the gas (A or D keys), A.K.A GetAxis “Horizontal”
I figure the best way to do this is a simple boolean of if the gas is let up, the car is braked and if the car is braked, apply brakeTorque (does this sound right?). But I don’t know how to specify something like Input.GetAxisUp (“Horizontal”)