The set of CbTypes assigned to this constraint. Used to filter which listeners respond to this constraint's events.
Whether the constraint's simulation component is currently sleeping.
Only valid when the constraint is active and in a space — throws otherwise.
Arbitrary user data attached to this constraint.
Lazily initialized to {} on first access.
Creates and returns a copy of this constraint with the same parameters. The copy is not automatically added to a space.
Invokes fn once for each distinct body linked to this constraint.
A pivot (pin) joint that constrains two anchor points — one on each body — to remain coincident in world space.
This is the most common joint type and is used to simulate hinges, pins, and revolute connections between bodies.
The constraint eliminates 2 translational degrees of freedom but leaves rotation free.
Example
Fully modernized — uses ZPP_PivotJoint directly (extracted to TypeScript).