Skip to content
您正在瀏覽 v0.18 的文件。最新版本為 v0.20。 前往最新文件

@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