Physics · function

defaultTyreCurve

A curve that rises to a peak and falls away, which is what a tyre does.

Explained in Your first game, Rigid bodies.

function defaultTyreCurve(peak?: number): TyreCurve
import { defaultTyreCurve } from '@driftengine/physics';

Parameters

ParameterTypeDescription
peak?number