interface GridMeasurePathWaypointData2D {
    cost?: number | GridMeasurePathCostFunction2D<{}>;
    measure?: boolean;
    teleport?: boolean;
}

Properties

cost?: number | GridMeasurePathCostFunction2D<{}>

A predetermined cost (nonnegative) or cost function to be used instead of options.cost.

measure?: boolean

Measure of the segment from the previous to this waypoint? The distance, cost, spaces, diagonals, and Euclidean length of a segment that is not measured are always 0. Default: true.

teleport?: boolean

Teleport to this waypoint? Default: false.