Hi i am new in unity and i made a 2dside scroller with a rigidbody and a square as a character but my problem is that if i go on a crooked cube the square starts to rotate and i can’t go on. So i wondered if there is a script which won’t let the square rotate.
Thanks for any help.
You should be able to prevent rotation by adding rotation constraints to your rigidbody component using the inspector.
1 Like