How to make a rigid joint between two RigidBodies

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potato
:warning: Old Version Published before Godot 3 was released.

I am trying to make something akin to Besiege, the physics sandbox vehicle designer game.

Instead of using cubes, I want to use free-form 3d shapes, and have them be individual rigid bodies connected by joints. The trouble is, I cant figure out how to stiffen the joint enough that it doesn’t do this:

Dropbox - File Deleted - Simplify your life

I’ve tried using each of the types of joints, and in the video am using a Generic6DOFJoint.

I’ve tried maxing and mining the values for restitution, softness and damping (which I don’t really understand) and results vary from the squishiness above to the objects leaping miles offscreen.

Does anyone know how to configure one of the joints to just attach two rigidbodies, with a minimum of jiggling? Or, even better, does anyone have a link to somewhere the describes how joints work, what the various values mean to their behavior etc? The best I’ve found is this:

Many thanks!

:bust_in_silhouette: Reply From: potato

Answering my own question (partially), switching to the Hinge Joint produces good enough results.

The following joint setup seems to lock two rigid-bodies together quite well:
HingeJoint: - bias: 0.99 - enable: on - upper: 0 - lower: 0 - bias: 0.99 - softness: 0.9 - relaxation: 1

The new problem now is how to handle the jiggling feedback effect that propagates back and forth through long chains. Probably some reduction of the above effects - adjusting the linear and angular damp on the rigid bodies high enough also helps.