Model loading · interface
LoadedRegion
Explained in Importing models.
interface LoadedRegionimport type { LoadedRegion } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
idreadonly | number | |
boundsreadonly | Float32Array | Min xyz then max xyz, placed. |
levelsreadonly | readonly LoadedRegionLevel[] | Finest first. HlodSet.add takes the errors, scaled by the fit. |
batchesreadonly | DrftPart[] | Its props, one instanced part a prototype, culled per instance. |
batchGroupsreadonly | number[] | Which of the region's groups in the file each batch is, index for index. Batches are built as their prototypes arrive, not in the file's order, so a caller pairing something of its own with each group — a material, a blend — pairs through this, never by position. |
occludersreadonly | Float32Array | Six floats a box, placed, for addOccluder. |
collisionreadonly | DrftRegionCollision | null | What it collides as, placed, or null. |
pending | number | Meshes and batches still to come; 0 once every level and prop is up. |