First entity this joint is connected to.
Second entity this joint is connected to.
Get lower limit of the slider constraint. In meters.
Get upper limit of the slider constraint. In meters.
null
.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.
0 (newtons)
Sets max friction force on the constraint after it was created.
Friction force (newtons).
If motor is used, returns Motor Settings. Otherwise null
.
null
Vec3(0, 1, 0)
Vec3(0, 1, 0)
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.
0
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.
0
First body position in constraint reference frame. Space is determined by space property.
Vec3(0, 0, 0)
Second body position in constraint reference frame. Space is determined by space property.
Vec3(0, 0, 0)
Vec3(1, 0, 0)
Vec3(1, 0, 0)
Reference frame space that point1
and point2
use.
CONSTRAINT_SPACE_WORLD
CONSTRAINT_TYPE_SLIDER
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.