UPD: OK, so setFixedRotation indeed is no longer supported by Box2D. Instead, one should set the moment of inertia to something other than the default 0 (using MOAIBox2DBody:setMassData) to enable the rotation. I think it would be reasonable to mark the setFixedRotation function as deprecated in the API docs as it is quite confusing.
I am just starting out with Box2D, and I cannot cause a body to rotate.
I am doing something like this:
world = MOAIBox2DWorld.new ()
world:setGravity ( 0, 0 )
world:setUnitsToMeters ( 1/30 )
layer:setBox2DWorld ( world )
dynamicBody = world:addBody ( MOAIBox2DBody.DYNAMIC )
dynamicBody:addRect(-30, -30, 30, 30)
Upon further inspection it seems that setFixedRotation is ignored and isFixedRotation always returns true. Why could that happen?