Combine rigibodies2D to form one single body

Hi
is there any way to combine multiple rigidbodies 2D into one body that behaves as such under gravity?

like having a body composed of multiple parts (at runtime) - as in the picture attached. and not having the hanging parts just fall, but the body to maintain it;s form and just tilt because of gravity

2910397--214562--Image1.png

I believe a fixed joint is what you’re looking for.

Edit:
Alternatively, if you don’t need to attach and detach them at runtime you can set one as the child of another one and remove the rigidbody component from the child. This works because the ridigbody in the parent will use the colliders in its children.

  1. Fixed joint does not work on 2D rigid bodies
  2. i do need to attach them at runtime. sort of like tetris
    making a hierachy out of them without rigidbody2D does not make the “children” respond to gravity

Simple case of looking up the 2D joint equivalent: FixedJoint2D.