Connecting three GameObjects by HingeJoints

Hi…its me again, :slight_smile:

I’m trying to connect two gameobjects by some kind of a “plank”. Please see the attached screen for a visualization of the behavior I’m looking for.

I’m sure I can solve this via HingeJoint usage. But what is the correct way? Attaching Joints to GameObject A and the plank and connecting Joint A to the rigidbody of the plank and attaching Joint B to the plank and connecting Joint B to the rigidbody of GameObject B? Or connecting GameObject A directly to GameObject B and creating the plank by a LineRenderer? What is the best way to create this connection so every objects rotates around point A and point B? Like a 3-part chain I guess? I have not found a working solution yet…

Thanks again for your help in advance!

Regards, Axel

452597--15783--$screen.png

You will need two joints if you want both objects to rotate around their connection point with the plank. I would probably do this by adding a joint to objects A and B and then using the plank as the connected body for the both joints. However, any other valid sequence of joint connections would give much the same result.

Can you be more specific about what goes wrong when you try to use the joints? Do the objects rotate around the wrong points or do they just fall apart as if unconnected or… what?