First entity this joint is connected to.
Second entity this joint is connected to.
null
if spring is not used.null
Modifies the spring properties after the constraint has been created.
Object, describing spring settings.
Current maximum distance that constraint will try to keep bodies apart. If set to negative
number, it uses initial distance between two bodies, when the joint was created.
Only works when space is set to CONSTRAINT_SPACE_WORLD
.
-1
Current minimum distance that constraint will try to keep bodies apart. If set to negative
number, it uses initial distance between two bodies, when the joint was created.
Only works when space is set to CONSTRAINT_SPACE_WORLD
.
-1
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)
Reference frame space that point1
and point2
use.
CONSTRAINT_SPACE_WORLD
CONSTRAINT_TYPE_DISTANCE
Distance constraint.