How to implement a fixed joint in Godot?

:bust_in_silhouette: Reply From: bath_idea

I’d like to share, how to create fixed joint in godot.
Obviously ,we can’t just parent a rigidbody to another rigidbody for creating fixed joint.
a child rigidbody will lost rigidbody property.

We can create compound object. Actually, it is a rigidbody with multiple collision shape.
example.
-Rigid_A
|->Collision_Shape_A
|----->Mesh_A
|->Collision_Shape_B
|----->Mesh_B

On runtime, we can just move only collision_shape and Mesh of rigidbody B to be under Rigidbody A.

Hope this help.

1 Like