API

Enumeration PhysicsConstraintAxisConst

The constraint specific axis to use when setting Friction, ConstraintAxisLimitMode, max force, ...

Index
ANGULAR_X: 3

Rotation around the primary axis of the constraint (i.e. the axis specified by PhysicsConstraintParameters.axisA/axisB)

ANGULAR_Y: 4

Rotation around the second axis of the constraint (i.e. the axis specified by PhysicsConstraintParameters.perpAxisA/perpAxisB)

ANGULAR_Z: 5

Rotation around the third axis of the constraint. This axis is computed from the cross product of axisA/axisB and perpAxisA/perpAxisB)

LINEAR_DISTANCE: 6

A 3D distance limit; similar to specifying the LINEAR_X/Y/Z axes individually, but the distance calculation uses all three axes simultaneously, instead of individually.

LINEAR_X: 0

Translation along the primary axis of the constraint (i.e. the direction specified by PhysicsConstraintParameters.axisA/axisB)

LINEAR_Y: 1

Translation along the second axis of the constraint (i.e. the direction specified by PhysicsConstraintParameters.perpAxisA/perpAxisB)

LINEAR_Z: 2

Translation along the third axis of the constraint. This axis is computed from the cross product of axisA/axisB and perpAxisA/perpAxisB)