how to limit rotation

i need to limit rotation on my motorbike so it doesnt go sideways when it goes up the jump, i remember clicking something to do it before but i cant remember how

2 Answers

2

The Freeze Rotation settings on the rigidbody component, in the inspector?

Woohoo thanks

to limit the rotation use Mathf.Clamp