The .drft container · interface

DrftRegion

Explained in The .drft container.

interface DrftRegion
import type { DrftRegion } from '@driftengine/drft';

Properties

NameTypeDescription
idreadonlynumber
boundsreadonlyArrayLike<number>Everything the region holds, min xyz then max xyz.
levelsreadonlyreadonly DrftRegionLevel[]Finest first; at least one.
instancesreadonlyreadonly DrftInstanceGroup[]Its props, drawn at its finest level.
occludersreadonlyFloat32ArrayBoxes that hide what stands behind them, six floats each.
collisionreadonlyDrftRegionCollision | nullOne triangle mesh the region collides as, or null.