Ok so I’m making a 2d platformer and well it’s going great so far, I’ve learned enough about coding to make my own scripts but the basics still elude me sometimes. Basically I need to know how to make it so my player character don’t topple over due to physics as I do not have a completely flat running surface.I guess I want him glued to the ground unless jumping, is there any way to do this?
On the rigidbody2d component for your character, check the ‘Fixed Angle’ option. This will prevent it from rolling over.
On your rigidbody, go down to constraints and check the rotation in the Z direction. That should fix your problem.