interface GridMeasurePathResultWaypoint {
    backward: GridMeasurePathResultSegment;
    forward: GridMeasurePathResultSegment;
    distance: number;
    spaces: number;
    cost: number;
}

Properties

The segment from the previous waypoint to this waypoint.

The segment from this waypoint to the next waypoint.

distance: number

The total distance travelled along the path up to this waypoint.

spaces: number

The total number of spaces moved along a direct path up to this waypoint.

cost: number

The total cost of the direct path (BaseGrid#getDirectPath) up to this waypoint.