Large worlds · interface

CellGrid

The grid a query walks: its cell, and the most cells one query may walk.

Explained in Coordinates and units.

interface CellGrid
import type { CellGrid } from '@driftengine/core';

In depth

The limit is stated rather than discovered. A view's frustum is bounded by its far plane, and a far plane a thousand cells away is a million-cell walk per predicted frame — a frame-time cliff that looks like a hang. A query that would walk more than maxCells refuses and says how many.

Properties

NameTypeDescription
sizereadonlynumberCell edge length, world units.
maxCellsreadonlynumber