Hi all,
I am in trouble again with my connected rigid bodies :)!
I want to flip a node horizontally, which contains 2 bodies and 1 pin joint.
The new positions and directions are correct now, but something is wrong with the joint.
The gravity scale properties are 0, and the bodies don't move (this is OK), but after flipping, they start to rotate... I don't know why :(.
If the joint's nodeA and nodeB members are empty, everything looks good.
I have tried to clear nodeA and nodeB, and restore them at the end of my flip method, but it didn't help...
It's hard to explain, so I uploaded the sample project!
Link: google drive
The flip function is called when a mouse button is pressed.
There are no visible items in the project, so you have to turn on the "visible collision shapes" checkbox!

The clearJointNodes()
and setJointNodes()
function calls are commented now (root.gd: line 21 and 41).
Thanks for any help / suggestion!