Sets max friction torque.
Friction torque value.
Sets normal half cone angle. In radians.
Normal half cone angle (rads).
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.
Sets plane half cone angle. In radians.
Plane half cone angle (rads).
null
, if spring is not used.Sets twist maximum angle. In radians.
Max twist angle in radians.
Sets minimum twist angle. In radians.
Min twist angle in radians.
null
, if a motor is not used.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.
Changes the swing 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.Constant number, representing the state.
Set the target angular velocity of body 2 in constraint space of body 2.
Target angular velocity.
Set the target orientation in body space. Refer to Jolt documentation for details.
Target orientation.
Set the target orientation in constraint space.
Target orientation.
Sets twist motor state. See setSwingMotorState for description.
Constant number, representing the state.
Swing-twist constraint.