Navigation · interface

NavPlacement

Where a mesh stands in the world: a vertex at cell (i, j) is at originX + i * cellSize, originZ + j * cellSize. A VoxelField is one, which is what buildPolyMesh is meant to be handed.

Explained in Navigation.

interface NavPlacement
import type { NavPlacement } from '@driftengine/nav';

Properties

NameTypeDescription
originreadonlyArrayLike<number>x, y, z of the field's corner; y is not used, since a polygon mesh has none.
cellSizereadonlynumber