Use a joint when two rigidbodies should stay connected in a predictable way.
If you want the editor workflow first, start with
Create a 2D Joint in the Editor.
Joint guides:
Each joint has a different job:
DistanceJoint2Dkeeps bodies separated by a tuned distanceHingeJoint2Drotates around a pivotFixedJoint2Dlocks two bodies togetherSliderJoint2Dmoves along one axis
Joint Prerequisites
All 2D joints depend on a Rigidbody2D authoring path.
Typical setup:
- Add
Rigidbody2Dto the moving object. - Add the joint component you need.
- Assign
Connected Bodyif the joint should attach to another rigidbody. - Tune anchors, limits, axis, or motor settings in the Inspector.
- Use the Scene view handles to place anchors and adjust the slider axis.
Why This Is Split Across Multiple Guides
Each joint should be learned in its own context.
That keeps the docs easier to absorb and makes examples more concrete.
If you need one-way collision behavior instead of a rigidbody relationship, use
PlatformEffector2D.