Model loading · interface

LoadedRegion

Explained in Importing models.

interface LoadedRegion
import type { LoadedRegion } from '@driftengine/assets';

Properties

NameTypeDescription
idreadonlynumber
boundsreadonlyFloat32ArrayMin xyz then max xyz, placed.
levelsreadonlyreadonly LoadedRegionLevel[]Finest first. HlodSet.add takes the errors, scaled by the fit.
batchesreadonlyDrftPart[]Its props, one instanced part a prototype, culled per instance.
batchGroupsreadonlynumber[]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.
occludersreadonlyFloat32ArraySix floats a box, placed, for addOccluder.
collisionreadonlyDrftRegionCollision | nullWhat it collides as, placed, or null.
pendingnumberMeshes and batches still to come; 0 once every level and prop is up.