how to attach 2 rigid bodies to each other

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vania23

so there is pin joint, it attaches 2 rigidbodies2d with free rotation. The thing is what i need to attach them without rotation. Any way to do that?

:bust_in_silhouette: Reply From: aidave

You can set lock_rotation on the rigid bodies when they are attached, then unset when they detach