Physics · function
warmStart
Apply the impulses carried over from the previous tick, before the first iteration.
Explained in Your first game, Rigid bodies.
function warmStart(bodies: BodySet, c: ContactConstraints, order: Int32Array, from: number, to: number): voidimport { warmStart } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
bodies | BodySet | |
c | ContactConstraints | |
order | Int32Array | |
from | number | |
to | number |