Interface
Fixed world point to which body 1 is connected (always in world space).
Fixed world point to which body 2 is connected (always in world space).
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.
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.
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.
First body position in constraint reference frame. Space is determined by space property.
Second body position in constraint reference frame. Space is determined by space property.
Ratio between the two line segments:
MinDistance <= Length1 + Ratio * Length2 <= MaxDistance
Reference frame that point1
and point2
use. Following constants available:
CONSTRAINT_SPACE_LOCAL
CONSTRAINT_SPACE_WORLD