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): void
import { warmStart } from '@driftengine/physics';

Parameters

ParameterTypeDescription
bodiesBodySet
cContactConstraints
orderInt32Array
fromnumber
tonumber