applyObstaclesToGrid
applyObstaclesToGrid(
grid,obstacles):void
Defined in: ai/nav/navObstacles.ts:186
Mark the cells an obstacle is standing on. A grid blocks by the cell, so this is the whole of what an obstacle does to one — and it is re-marked from scratch each time, because working out which cells a box has LEFT is the same walk.
Parameters
Section titled “Parameters”obstacles
Section titled “obstacles”readonly NavObstacleBox[]
Returns
Section titled “Returns”void