how do you use the b2Body::m_rotation? (SOLVED)

hello, I can anybody tell me how to rotate a b2Body manually?

I'd like to rotate this body
b2Body* rotatingBody;

I'm doing this in the update
rotatingBody->m_rotation += 0.01;

but it doesn't move X_x'
Try applying a torque to the body. Or you could recreate the body in every step, increasing the rotation of the bodyDef.
ohhh sorry my bad

I think you need to do a world step for the rotation to be implemented
it works now thanks anyways ^_^
vulatskee wrote:
I think you need to do a world step for the rotation to be implemented


Good idea 😉
BTW,

can you manually rotate b2Bodies with density equal to 0?

I'm having trouble setting the gravity on my world to (0,0) while adding
then reverting it back to (0, -10) after adding and rotating the b2Body

*EDITED:
nvm it works already >_<'

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