Prevent objects from rotating

Hi everyone,
I'm doing a platform game based on box2d and the hge (haaf's game engine). So far, I'm doing good progress. An issue has arisen which I would like to discuss with you.
In order to work properly as a platformer, I have to switch off rotating to some objects (Imagine Super Mario bumping his head on a brick, then rotating and falling helplessly on his back, like a beetle). So far, I solved this problem by resetting the position of all objects to their current position, but with 0.0f rotation angle. It works okay, but rounding errors lead to that objects slowly "slip" from a moving platform or static platform edges. This makes gameplay hard as hell just now. Is there a more intelligent way to solve this, e.g. "turn off" rotating for some object so that box2d ignores the rotation angle?

Help is much appreciated, keep up the good work,
hawkei
See b2BodyDef::preventRotation
Thank you, Erin.
hi. has b2BodyDef::preventRotation been deprecated? I can't find it - at least, not in the AS3 port of 2.0.0.

I'm using b2BodyDef::angularDamping = 32 during creation, and b2Body::SetAngularVelocity( 0 ) in my update loop. Does this seem about right, or am i missing something?
in 2.0.1
bd.fixedRotation=true;

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