null
if spring is not used.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
.
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
.
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.
Reference frame space that point1
and point2
use.
Distance constraint.