How to make loose objects in 3D?

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

How to properly use joints in order to make loose objects that are affected by gravity, and are connected to another Rigid_Body?

Here’s a project that can be used for testing: Lamp_Physics.rar.

Example (the little ring on top):

:bust_in_silhouette: Reply From: Zylann

You can use the PinJoint node, which will act like the attachment point at the top of your lantern.

This node can be placed in the world, and you have to specify two other nodes:

  • The loose object, which should be a RigidBody
  • The object it is attached to (can be a StaticBody or another kind of body I guess).

It works the same in 2D.

Example project (for both 3D and 2D):

This old video also explains it: