Override for the number of solver position iterations to run. If set to 0
, the constraint
will use global default set by Physics initialization setting
JoltInitSettings.numPositionSteps.
Override for the number of solver velocity iterations to run. If set to 0
, the constraint
will use global default set by Physics initialization setting
JoltInitSettings.numVelocitySteps.
Reference frame space that point1
and point2
use.
Modifies a spring of the constraint for the selected axis, after it was created.
// axis
[posX, posY, posZ, rotX, rotY, rotZ]
Axis number, zero-based.
Spring settings.
Modifies the max friction for selected axis (friction force for translation, friction torque for rotation).
See setLimitsSpringSettings for example.
Axis number, zero-based.
Friction value.
Changes the motor state, e.g. turn it on/off. Following aliases available:
MOTOR_STATE_OFF
MOTOR_STATE_VELOCITY
MOTOR_STATE_POSITION
MOTOR_STATE_POSITION
: Motor will drive to target position.MOTOR_STATE_VELOCITY
: Motor will drive to target velocity.See setLimitsSpringSettings for example.
Axis number, zero-based.
Constants, representing the state.
Six degrees of freedom (six DOF) constraint.