toggle fixedRotation dynamically

whats the best way to turn fixedRotation on and off at run time?

or would it be better to use some sort of joint?
I've made some minor changes a while ago to the C++ version to support this. I recommend you port this, as the easiest solution.

[rul=http://box2d.svn.sourceforge.net/viewvc/box2d?view=rev&revision=204]Link[/rul]
followed your C++ foot steps

here is the patch
http://www.sketchbookgames.com/b2Body.patch

this patch includes
b2Body:
GetLinearDamping():Number
SetLinearDamping(Number):void
GetAngularDamping():Number
SetAngularDamping(Number):void
IsFixedRotation():Boolean
SetFixedRotation(Boolean):void
SetStatic():void
IsAllowSleeping():Boolean


HelloWorld compiles fine with the new code.
I have not tested any of these methods, but its a direct port of what you had in the C++ code.
Nicely done. I've committed it straight away.
could you use any assistance in porting the new contact framework stuff that Erin Catto mentioned committing today?
Man are you kidding? I'd love assistance. I basically hate porting, which is why the port is falling behind. In fact, it's not really accurate to say I'm working on it at all, at the moment. The intention was to work through the revisions linearly, but you can do whatever you want, really, presumably based on what features you'd most like to see.

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