I'm not sure if this is the place for these kind of questions but the question being... I'm creating a 2d platformer whenever my character hits a side of a solid object he starts to flip around I don't know why , I don't how to stop it, I've tried to search it up but found nothing. Thanks very much
when you look on the inspector, go to the rigidbody component, then click on the little arrow that says Constraints. From there, you can restrict rotation on the z axis, which will prevent your character from falling over.