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 | null
import { buildProxy } from '@driftengine/assets';

Parameters

ParameterTypeDescription
cellsreadonly ProxyCell[]
levelnumber

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.