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
if you glue together two balls, can you rotate them separately?
basically it is not possible
If you want to achieve that, you would need a stick, and attach two bodies to a stick with revolute joints
then they will stay together and you can rotate them separately