Interface
Vec3(0, 1, 0)
Bodies are assumed to be placed so that the hinge angle equals zero. Movement will be
limited between [limitsMin, limitsMax] where limitsMin belongs to
range [-PI, 0]
and limitsMax belongs to [0, PI]
. Both angles are in radians.
Math.PI
See limitsMax.
-Math.PI
Optional spring settings to use a spring when constraining limits.
null
Maximum amount of torque to apply as friction when the constraint is not powered by a motor.
0 (N m)
Optional motor to power the constraint around the hinge axis.
null
Vec3(1, 0, 0)
Vec3(1, 0, 0)
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 that point1
and point2
use. Following constants available:
CONSTRAINT_SPACE_LOCAL
CONSTRAINT_SPACE_WORLD
CONSTRAINT_SPACE_WORLD
Default Value