The .drft container · const

MAX_COLLIDER_HULLS

A cap on hulls per asset, so a malformed length cannot ask a reader for gigabytes.

Explained in The .drft container.

const MAX_COLLIDER_HULLS = 32
import { MAX_COLLIDER_HULLS } from '@driftengine/drft';

In depth

Matches MAX_BODY_PARTS in @driftengine/physics by intent rather than by import — this package depends on nothing, and the two are checked against each other by a test in the engine instead.