Physics · interface
TyreCurve
Grip against slip, as a lookup table.
Explained in Your first game, Rigid bodies.
interface TyreCurveimport 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
| Name | Type | Description |
|---|---|---|
slipreadonly | Float32Array | |
forcereadonly | Float32Array |