Skip to main content
Version: 4.6.0

Hinge Joint 2D

Allows two objects to rotate around a single axis, simulating the behavior of objects connected by a hinge, like a door or a folding screen.

Add a Hinge Joint 2D Component

To add a Hinge 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 Hinge Joint 2D
add hinge joint

Properties

properties
PropertyDescription
Connected BodySpecifies the other Rigid Body component that the hinge joint should be connected to
AnchorThe position of the hinge joint in world space
Connected AnchorThe position in space of the connected body where it should be anchored to the hinge joint
Use LimitsA toggle to turn on or off to use angle limits for the hinge joint
Minimum AngleThe minimum angle for the hinge joint, when Use Limits is enabled
Maximum AngleThe maximum angle for the hinge joint, when Use Limits is enabled
Breaking ForceThe maximum force that the joint can sustain before breaking, when Breakable is enabled
Breaking TorqueThe torque required to break the fixed joint, when Breakable is enabled