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).
Reference frame space that point1
and point2
use.
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.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.
Sets twist motor state. See setSwingMotorState for description.
Constant number, representing the state.
Swing-twist constraint.