Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Rotate Weld Joint bodies — Gideros Forum

Rotate Weld Joint bodies

maucoltmaucolt Member
edited March 2014 in General questions
I have two bodies glued with Weld Joint. How can I turn both together for a specified number of degrees?
The code I used is:

body: setAngle (body: getAngle () + math.rad (90))

As long as there was only one body, the rotation worked.
Once glued, they rotated together, but at an angle that I do not understand.

P.S. The two bodies are applied to sprites. It's better to rotate sprites?

Thanks

Comments

Sign In or Register to comment.