Physics · interface

TyreCurve

Grip against slip, as a lookup table.

Explained in Your first game, Rigid bodies.

interface TyreCurve
import type { TyreCurve } from '@driftengine/physics';

In depth

force[i] is the fraction of the load available as lateral or longitudinal force at slip[i]. Both arrays are the same length and slip must ascend. Beyond the last entry the final value is held, which is what a tyre past its peak does.

Properties

NameTypeDescription
slipreadonlyFloat32Array
forcereadonlyFloat32Array