setCellCost

fun setCellCost(cell: Cell, cost: Double)(source)

Set the per-step cost of entering cell. Must be ≥ 0. Cells with no explicit cost have cost 1.0 implicitly.

Note: costs below 1.0 (including 0.0) make the non-ZERO inadmissible — wrap your heuristic with GridHeuristics.scaled using minCellCost, or use Dijkstra (GridHeuristics.ZERO). See GridHeuristics for details.