How to Freeze Rotation in 2 Axes?

Hello there!
I`m still fighting against the evil rotations of the Physics. I’m adding a Force on the player to make him jump, but he’s rotating around all of his axes. But I plane to make him able to rotate only around one axe, like we already discussed on this topic: http://forum.unity3d.com/viewtopic.php?t=15603

So… Anyone has any tip for me?

Hugs!

Restrict his angular velocity along those other two axis. All you have to do is set rigidbody.angularVelocity.x = 0; every frame. Just replace the x with whatever axis you’re restricting.

Thanks Gargerath Sunman!
I was going in a completely wrong path, trying to set a fixed rotation o something like that…:sweat_smile:

Thanks again!