five-on-it / packages/world/src/nav-layers / NavLayers
Interface: NavLayers
Defined in: packages/world/src/nav-layers.ts:77
The navigation grid and every floor over its ground (see the module documentation).
Properties
cell
cell:
Uint32Array
Defined in: packages/world/src/nav-layers.ts:87
The cell of every upper node.
components
components:
NavComponents
Defined in: packages/world/src/nav-layers.ts:95
Which nodes reach which: walking alone, and with the links (nav-links.ts).
edges
edges:
Float32Array
Defined in: packages/world/src/nav-layers.ts:89
The edge heights of every node, four per node in the order +x, −x, +z, −z (m; NaN: its floor stops short of that edge).
first
first:
Uint32Array
Defined in: packages/world/src/nav-layers.ts:81
Where each cell's upper nodes start: those of cell c are first[c] to first[c + 1] (exclusive), counted from 0.
flags
flags:
Uint8Array
Defined in: packages/world/src/nav-layers.ts:85
The flags of every upper node (the grid's NAV_* bits).
grid
grid:
NavGrid
Defined in: packages/world/src/nav-layers.ts:79
The ground: node i of a cell i is its ground, flags and height as the grid has them.
height
height:
Float32Array
Defined in: packages/world/src/nav-layers.ts:83
The height of every upper node (m).
links
links:
NavLinks
Defined in: packages/world/src/nav-layers.ts:93
The ways between floors that are no walk: ladders, lifts, drops, hops, narrow stairs (nav-links.ts).
nodes
nodes:
number
Defined in: packages/world/src/nav-layers.ts:91
How many nodes there are: the grid's cells and the upper nodes after them.