Rotating physics bodies?

Is there any way to rotate physics bodies? I tried doing some matrix rotation to achieve the desired effect, but I can’t seem to make it work quite yet. Has anyone come up with a solution to rotate physics bodies? [import]uid: 9484 topic_id: 17943 reply_id: 317943[/import]

Using obj.rotation works fine.

Peach :slight_smile: [import]uid: 52491 topic_id: 17943 reply_id: 68537[/import]

Thanks for the response Peach. I had originally tried this and now see that it does work. It wasnt working properly b/c of Obj:setReferencePoint(display.TopLeftReferencePoint). If obj.rotation works, why does corona’s physics page state this, “You can scale the object up or down and rotate it but the Physics engine still sees the object as it was before the changes”. [import]uid: 9484 topic_id: 17943 reply_id: 68599[/import]

Hey lancer,

I’m not actually certain as to what that relates to - it may be referring to applying linear impulse, which you can see when viewing the hybrid draw mode does not work well in certain scenarios.

That could certainly be clearer though, apologies.

Peach :slight_smile: [import]uid: 52491 topic_id: 17943 reply_id: 68689[/import]

Dear Lancer.
I’m facing same problem. Did you find any solution? [import]uid: 92273 topic_id: 17943 reply_id: 75990[/import]

Yeah, obj.rotation works. I initially thought it wasnt working b/c i had my reference point set to the upper left corner. Make sure to rotate the group. Hope this helps. [import]uid: 9484 topic_id: 17943 reply_id: 75993[/import]