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 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
Constrains the angle of two bodies to each other to be equal. If a gear ratio is not one, the angle of bodyA must be a multiple of the angle of bodyB.
Example
Example