Skip to content

@ue-too/dynamics / index / Constraint

介面: Constraint

定義於: constraint.ts:17

Physics constraint interface.

備註

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.

方法

enforce()

enforce(dt): void

定義於: constraint.ts:23

Enforces the constraint for one timestep.

參數

dt

number

Timestep in seconds

回傳

void