five-on-it / packages/world/src/nav-links / freeNodeNear
Function: freeNodeNear()
freeNodeNear(
layers,x,z,y):number
Defined in: packages/world/src/nav-links.ts:135
The free node nearest (x, z) within two cells whose height is within 0.6 m of y: the floor at a ladder's or a lift's end, the node someone standing against a wall is on; −1 with none.
Parameters
layers
x
number
z
number
y
number
Returns
number