I am basically making a vehicle endless runner , however the vehicle must go straight, you can go to the sides but I dont want the player to able to pull a 90 degree into wall and then turn a 180 into the opposite direction, so how do I clam the vehicle rotation or at least make it more difficult to pull a 180. I tried having it not register input after passing a certain roll and then changing the rotation every tick. That failed horribly.
Just taking away the sideways input puts the vehicle into a spin. I do not know how to fix it. Please help.