Class PulleyConstraintSettingsInterface

Hierarchy (View Summary)

Properties

fixedPoint1: Vec3

Fixed world point to which body 1 is connected (always in world space).

Vec3(0, 0, 0)
fixedPoint2: Vec3

Fixed world point to which body 2 is connected (always in world space).

Vec3(0, 0, 0)
maxLength: number

The maximum length of the line segments. Use -1 to calculate the length based on the positions of the objects when the constraint is created.

-1
minLength: number

The minimum length of the line segments. Use -1 to calculate the length based on the positions of the objects when the constraint is created.

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)
ratio: number

Ratio between the two line segments:

MinDistance <= Length1 + Ratio * Length2 <= MaxDistance
1
space: number

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

CONSTRAINT_SPACE_LOCAL
CONSTRAINT_SPACE_WORLD
CONSTRAINT_SPACE_WORLD