Skip to main content
Version: 4.6.0

Spring Joint 2D

A type of joint that allows two rigid bodies to move apart and come together like a spring, imposing a constraint on the relative position between the two bodies.

Add a Spring Joint 2D Component

To add a Spring Joint 2D component:

  1. Go to the Hierarchy panel
  2. Add or select a 2D object and locate its components in the Inspector panel
  3. Click Add component
  4. Go to 2D Physics
  5. Select Spring Joint 2D
add spring joint

Properties

properties
PropertyDescription
Connected BodySpecifies the other Rigid Body component that the spring joint should be connected to
AnchorThe position in space where the spring joint should be anchored
Connected AnchorThe position in space of the connected body where it should be anchored to the spring joint
Damping RatioSets the degree to suppress spring oscillation. The higher the value, the less movement.
ToleranceThe linear tolerance of the joint. Determines how close the joint must be to its reference position before it's considered at a target.
Breaking ForceThe maximum force that the joint can sustain before breaking, when Breakable is enabled