Constraints

First of all I would like to say that this is a wonderful physics engine for 2d, most likely the best out there. It feels a lot like PhysX which I'm already familiar with.

Now to the question, since I don't want my player to be able to tip over I would like to constrain rotation. However, since I'm not much of a physics junkie when it comes to the details I can't seem to find functionality for it in the source.

Grateful for any help.
I haven't set up an API for this yet, but you can achieve this easily. Once you have created the character body, just set body->m_invI = 0.0f. This will prevent the character from rotating.

I'll add an API for this in a future release.
Thanks a bunch.

Original thread: https://box2d.org/forum/viewtopic.php?t=15