Vec3(1, 0, 0)
Vec3(1, 0, 0)
Vec3(0, 1, 0)
Vec3(0, 1, 0)
First entity this joint is connected to.
Second entity this joint is connected to.
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_SIX_DOF
Modifies a spring of the constraint for the selected axis, after it was created.
// axis
[posX, posY, posZ, rotX, rotY, rotZ]
Axis number, zero-based.
Spring settings.
// change the spring settings used on X axis of rotation
constraint.setLimitsSpringSettings(3, springSettings);
Modifies the max friction for selected axis (friction force for translation, friction torque for rotation).
See setLimitsSpringSettings for example.
Axis number, zero-based.
Friction value.
Changes the motor state, e.g. turn it on/off. Following aliases available:
MOTOR_STATE_OFF
MOTOR_STATE_VELOCITY
MOTOR_STATE_POSITION
MOTOR_STATE_POSITION
: Motor will drive to target position.MOTOR_STATE_VELOCITY
: Motor will drive to target velocity.See setLimitsSpringSettings for example.
Axis number, zero-based.
Constants, representing the state.
Six degrees of freedom (six DOF) constraint.