Skip to content

five-on-it / packages/world/src/nav-layers / NavComponents

Interface: NavComponents ​

Defined in: packages/world/src/nav-layers.ts:128

Which nodes reach which (nav-links.ts): two nodes with the same walk are joined by a walk; two with the same climb reach each other with the links too (up a ladder and down it again, a hop up and a drop back); a node reaches another of a different climb only down the one-way edges between them (a drop off a roof nothing leads up to). A blocked node is in none (−1).

Properties ​

climb ​

climb: Int32Array

Defined in: packages/world/src/nav-layers.ts:132

Each node's component with the links: the lowest node of it.


downFrom ​

downFrom: Int32Array

Defined in: packages/world/src/nav-layers.ts:134

The one-way edges between climb components, sorted: from downFrom[i] to downTo[i].


downTo ​

downTo: Int32Array

Defined in: packages/world/src/nav-layers.ts:136

See NavComponents.downFrom.


walk ​

walk: Int32Array

Defined in: packages/world/src/nav-layers.ts:130

Each node's component of walking: the lowest node it walks to.