Skip to content

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

Function: navNode() ​

navNode(layers, x, z, feet?): number

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

The node someone stands on at (x, z): with feet (the height of their feet, m), the highest node of the cell under them that is no more than a step over their feet (or the ground under everything); without, the ground. −1 outside the grid.

Parameters ​

layers ​

NavLayers

x ​

number

z ​

number

feet? ​

number

Returns ​

number