Model loading · function
buildProxy
One mesh standing in for a whole cell group, or null when it is not worth having.
Explained in Importing models.
function buildProxy(cells: readonly ProxyCell[], level: number): MeshData | nullimport { buildProxy } from '@driftengine/assets';Parameters
| Parameter | Type | Description |
|---|---|---|
cells | readonly ProxyCell[] | |
level | number |
In depth
null in three cases, and they are all the same case: there is nothing to gain. An empty group,
a group whose geometry does not span a single grid cell, and a group already cheaper than any
proxy of it would be.