Skip to content

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

Function: cellCosts() ​

cellCosts(grid, w): Float32Array

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

The cost of every cell of a grid under some weights (Infinity where blocked).

Parameters ​

grid ​

NavGrid

w ​

GridWeights

Returns ​

Float32Array