PathfindingGridHelper
new PathfindingGridHelper(grid : PathfindingGrid, options : Object)Create a pathfinding grid helper.
Constructor Parameters
gridPathfindingGridThe pathfinding grid to visualize.
optionsoptionalObjectConfiguration options.
Default is
Default is
{}.updateIntervaloptionalnumberUpdate interval in ms.
Default is1000.walkableColoroptionalnumberWalkable cell color.
Default is0x00ff00.blockedColoroptionalnumberBlocked cell color.
Default is0xff0000.opacityoptionalnumberCell opacity.
Default is0.3.showWalkableoptionalbooleanShow walkable cells.
Default istrue.showBlockedoptionalbooleanShow blocked cells.
Default isfalse.yOffsetoptionalnumberY offset above ground.
Default is0.05.
Properties
# .grid : PathfindingGrid
Reference to the pathfinding grid.
# .updateInterval : number
Update interval in milliseconds.
# .yOffset : number
Y offset for visualization elements.
# .opacity : number
Grid cell opacity.
# .showWalkable : boolean
Whether to show walkable cells.
# .showBlocked : boolean
Whether to show blocked cells.