@ue-too/dynamics / Constraint
Interface: Constraint
Defined in: constraint.ts:17
Physics constraint interface.
Remarks
Constraints restrict the motion of rigid bodies. Common examples include pin joints, distance constraints, and angle limits.
Constraints are solved using iterative methods and Baumgarte stabilization to prevent drift over time.
Methods
enforce()
enforce(
dt):void
Defined in: constraint.ts:23
Enforces the constraint for one timestep.
Parameters
dt
number
Timestep in seconds
Returns
void