Distance Joint 2D
Attaches two objects together and keeps them at a certain, fixed distance apart.
Add a Distance Joint 2D Component
To add a Distance Joint 2D component:
- Go to the Hierarchy panel
- Add or select a 2D object and locate its components in the Inspector panel
- Click Add component
- Go to 2D Physics
- Select Distance Joint 2D

Properties

Property | Description |
---|---|
Connected Body | Specifies the other Rigid Body component that the distance joint should be connected to |
Anchor | The position of the hinge joint in world space |
Connected Anchor | The position in space of the connected body where it should be anchored to the hinge joint |
Breaking Force | The maximum force that the joint can sustain before breaking, when Breakable is turned on |