Interface PhysicsConstraintParameters
axisA?: Vector3;
axisB?: Vector3;
collision?: boolean;
maxDistance?: number;
perpAxisA?: Vector3;
perpAxisB?: Vector3;
pivotA?: Vector3;
pivotB?: Vector3;
}
Properties
Optionalaxis A
An axis in the space of the first body which determines how distances/angles are measured for LINEAR_X/ANGULAR_X limits.
Optionalaxis B
An axis in the space of the second body which determines how distances/angles are measured for LINEAR_X/ANGULAR_X limits.
Optionalcollision
Determines if the connected bodies should collide. Generally, it is preferable to set this to false, especially if the constraint positions the bodies so that they overlap. Otherwise, the constraint will "fight" the collision detection and may cause jitter.
Optionalmax Distance
The maximum distance that can separate the two pivots. Only used for DISTANCE constraints
Optionalperp Axis A
An axis in the space of the first body which determines how distances/angles are measured for LINEAR_Y/ANGULAR_Y limits.
Optionalperp Axis B
An axis in the space of the second body which determines how distances/angles are measured for LINEAR_Y/ANGULAR_Y limits.
Optionalpivot A
Location of the constraint pivot in the space of first body
Optionalpivot B
Location of the constraint pivot in the space of the second body
Parameters used to describe a Constraint