Enumeration PhysicsConstraintTypeConst
Enumeration Members
BALL_ AND_ SOCKET
A ball and socket constraint will attempt to line up the pivot positions in each body, and have no restrictions on rotation
DISTANCE
A distance constraint will attempt to keep the pivot locations within a specified distance.
HINGE
A hinge constraint will keep the pivot positions aligned as well as two angular axes. The remaining angular axis will be free to rotate.
LOCK
A lock constraint will attempt to keep the pivots completely lined up between both bodies, allowing no relative movement.
PRISMATIC
A prismatic will lock the rotations of the bodies, and allow translation only along one axis
SIX_ DOF
A generic constraint; this starts with no limits on how the bodies can move relative to each other, but limits can be added via the PhysicsConstraint interfaces. This can be used to specify a large variety of constraints
SLIDER
A slider constraint allows bodies to translate along one axis and rotate about the same axis. The remaining two axes are locked in place
Type of Constraint