Class SliderConstraintSettingsInterface

Hierarchy (View Summary)

Properties

limitsMax: number

Upper limit of the constraint. In meters.

+Infinity
limitsMin: number

Lower limit of the constraint. In meters.

-Infinity
limitsSpringSettings: null | SpringSettings = null

Optional spring settings to use a spring when constraining limits.

null
maxFrictionForce: number

Maximum amount of friction force to apply when not driven by a motor.

0 (newtons)
motorSettings: MotorSettings = null

Optional motor settings to use a motor that will drive the constraint.

null
normalAxis1: Vec3
Vec3(0, 1, 0)
normalAxis2: Vec3
Vec3(0, 1, 0)
numPositionStepsOverride: number

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
numVelocityStepsOverride: number

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
point1: Vec3

First body position in constraint reference frame. Space is determined by space property.

Vec3(0, 0, 0)
point2: Vec3

Second body position in constraint reference frame. Space is determined by space property.

Vec3(0, 0, 0)
sliderAxis1: Vec3
Vec3(1, 0, 0)
sliderAxis2: Vec3
Vec3(1, 0, 0)
space: number

Reference frame that point1 and point2 use. Following constants available:

CONSTRAINT_SPACE_LOCAL
CONSTRAINT_SPACE_WORLD
CONSTRAINT_SPACE_WORLD