Get lower limit of the slider constraint. In meters.
Get upper limit of the slider constraint. In meters.
null
.Modifies the spring properties after the constraint has been created.
Object, describing spring settings.
Maximum amount of friction force to apply when not driven by a motor.
Sets max friction force on the constraint after it was created.
Friction force (newtons).
If motor is used, returns Motor Settings. Otherwise null
.
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.
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.Constant number, representing the state.
Sets a target angle for the motor to drive to. The motor needs to be operating in position mode. See setMotorState.
Number, radians.
Sets motor's target velocity. The motor needs to be operating in velocity mode. See setMotorState.
Number, radians per second
Slider constraint.