API

Enumeration PhysicsConstraintTypeConst

Type of Constraint

Index
BALL_AND_SOCKET: 1

A ball and socket constraint will attempt to line up the pivot positions in each body, and have no restrictions on rotation

DISTANCE: 2

A distance constraint will attempt to keep the pivot locations within a specified distance.

HINGE: 3

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: 5

A lock constraint will attempt to keep the pivots completely lined up between both bodies, allowing no relative movement.

PRISMATIC: 6

A prismatic will lock the rotations of the bodies, and allow translation only along one axis

SIX_DOF: 7

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: 4

A slider constraint allows bodies to translate along one axis and rotate about the same axis. The remaining two axes are locked in place