The .drft container · interface
DrftRegion
Explained in The .drft container.
interface DrftRegionimport type { DrftRegion } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
idreadonly | number | |
boundsreadonly | ArrayLike<number> | Everything the region holds, min xyz then max xyz. |
levelsreadonly | readonly DrftRegionLevel[] | Finest first; at least one. |
instancesreadonly | readonly DrftInstanceGroup[] | Its props, drawn at its finest level. |
occludersreadonly | Float32Array | Boxes that hide what stands behind them, six floats each. |
collisionreadonly | DrftRegionCollision | null | One triangle mesh the region collides as, or null. |