Skip to content

five-on-it / packages/ai/src/pathfinding / layerCosts

Function: layerCosts() ​

layerCosts(layers, w): Float32Array

Defined in: packages/ai/src/pathfinding.ts:286

The cost of every node of a layered navigation under some weights (Infinity where blocked): the ground's as cellCosts has them, then the floors'.

Parameters ​

layers ​

NavLayers

w ​

GridWeights

Returns ​

Float32Array