Physics · type

HeightField

A field of one height per column: the consumer's own (x, z) -> y.

Explained in Your first game, Rigid bodies.

type HeightField = (x: number, z: number) => number
import type { HeightField } from '@driftengine/physics';