PathfindingHelper
new PathfindingHelper(grid : PathfindingGrid, options : Object)Create a pathfinding helper.
Constructor Parameters
gridPathfindingGridThe pathfinding grid reference.
optionsoptionalObjectConfiguration options.
Default is
Default is
{}.updateIntervaloptionalnumberUpdate interval in ms.
Default is100.pathColoroptionalnumberPath line color.
Default is0x00ff88.activeColoroptionalnumberActive segment color.
Default is0x00ffff.bodyLineColoroptionalnumberBody to path line color.
Default is0xff0000.waypointColoroptionalnumberWaypoint marker color.
Default is0xffffff.destinationColoroptionalnumberDestination marker color.
Default is0xff6688.showWaypointsoptionalbooleanShow waypoint markers.
Default istrue.showDestinationoptionalbooleanShow destination marker.
Default istrue.showBodyLineoptionalbooleanShow line from body to first waypoint.
Default istrue.yOffsetoptionalnumberY offset for path lines.
Default is0.1.
Properties
# .grid : PathfindingGrid
Reference to the pathfinding grid.
# .updateInterval : number
Update interval in milliseconds.
# .yOffset : number
Y offset for visualization elements.
# .showWaypoints : boolean
Whether to show waypoint markers.
# .showDestination : boolean
Whether to show destination markers.
# .showBodyLine : boolean
Whether to show body to first waypoint line.