0 votes

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):


in Engine by (37 points)
edited by

1 Answer

0 votes

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: https://www.youtube.com/watch?v=rYJB73eO8Mg

by (28,982 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.