- Home /
Physics - Capsule, Rigidbody - Falls over
I have got a Capsule as player that can be controlled. Added Rigidbody to him so he does not fall through the terrain (which has a terrain collider).
Now to my problem. Sometimes, when hes walking on a higher ground or colliding with a tree, the capsule falls over. How to fix it, that the gravity does not cause him to fall over?
Answer by Fornoreason1000 · May 18, 2013 at 10:13 AM
Okay go to your rigid body and there should be a freeze rotation tab , check x and z to stop the falling
Thanks, Ive just started Unity program$$anonymous$$g and this helped alot :)
I have the freeze rotation locked for x and z, but when i try to look up or down and turn at the same time, the object still falls over.. Any ideas?
@Rancorusia, did you find a solution to your problem? I'm having the same issue - when looking up and down then turning, the player slowly tilts over. Tried constraints, etc. Did you discover why?
I don't remember how i solved it, but i remember that i did.. $$anonymous$$eep looking online, there are some good Youtube tutorials too, they helped a lot. I do remember that it was a very simple solution though
This stopped me from falling over however now my Player can go through colliders on the x axis can you help