setVoxelCost

fun setVoxelCost(voxel: Voxel, cost: Double)(source)

Set the per-step cost of entering voxel. Must be ≥ 0. Voxels 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 VoxelHeuristics.scaled using minVoxelCost, or use Dijkstra (VoxelHeuristics.ZERO).