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.
Destroy this constraint. The connected bodies will be activated.
Allows to enable/disable a constraint without destroying it.
true
- enable constraint, false
- disable.
Optional
activate: boolean = trueIf true
, activate connected bodies after changing the state.
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.
Modifies rotation limits of the constraint after it was created. In radians.
Lower limit of the constraint.
Upper limit of the constraint.
Sets the target angular velocity for the constraint (constraint space).
Target velocity.
Sets the target orientation for the constraint (body space). Refer to Jolt documentation for details.
Target orientation.
Sets the target orientation for the constraint (constraint space).
Target orientation.
Sets the target position for the constraint (constraint space).
Target position.
Sets the target velocity for the constraint (constraint space).
Target velocity.
Modifies translation limits of the constraint after it was created. In meters.
Lower limit of the constraint.
Upper limit of the constraint.
Six degrees of freedom (six DOF) constraint.