Joint2D question

Godot Version 3.5.3

I have two pinned bodies, but I want in certain moment to “disconnect” these two bodies. How can I do that?

1 Like

Just reset either node_a or node_b of the PinJoint:

$PinJoint2D.node_a = NodePath("")
$PinJoint2D.node_b = NodePath("")
2 Likes

Thanks, solved my question haha