First body participating in the constraint.
Second body participating in the constraint.
Set to true if you want the connected bodies to collide.
true
Equations to be solved in this constraint
The offset angle of bodyB in bodyA's frame.
The offset of bodyB in bodyA's frame.
The type of constraint. May be one of Constraint.DISTANCE, Constraint.GEAR, Constraint.LOCK, Constraint.PRISMATIC or Constraint.REVOLUTE.
Static
DISTANCEStatic
GEARStatic
LOCKStatic
OTHERStatic
PRISMATICStatic
REVOLUTE
Locks the relative position and rotation between two bodies.
Example