Class SwingTwistConstraintSettingsInterface

Hierarchy (view full)

Properties

maxFrictionTorque: number

Default Value

0
normalHalfConeAngle: number

Default Value

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.

Default Value

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.

Default Value

0
planeAxis1: any

Default Value

Vec3(0, 1, 0)
planeAxis2: any

Default Value

Vec3(0, 1, 0)
planeHalfConeAngle: number

Default Value

0
point1: any

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

Default Value

Vec3(0, 0, 0)
point2: any

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

Default Value

Vec3(0, 0, 0)
space: number

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

CONSTRAINT_SPACE_LOCAL
CONSTRAINT_SPACE_WORLD

Default Value

CONSTRAINT_SPACE_WORLD
swingMotorSettings: null | MotorSettings = null

Default Value

null
twistAxis1: any

Default Value

Vec3(1, 0, 0)
twistAxis2: any

Default Value

Vec3(1, 0, 0)
twistMaxAngle: number

Default Value

0
twistMinAngle: number

Default Value

0
twistMotorSettings: null | MotorSettings

Default Value

null