melonJS
    Preparing search index...

    Interface PathResult

    what Grid#findPath found

    interface PathResult {
        cells: Vector2d[];
        cost: number;
        explored: number;
        found: boolean;
        path: Vector2d[];
        trace?: Vector2d[];
    }
    Index
    cells: Vector2d[]

    the same steps, as cells (x the column, y the row)

    cost: number

    what the path costs: its steps, each weighted by the cell it enters

    explored: number

    how many cells the search looked at (the goal, once reached, is not counted)

    found: boolean

    whether the path reaches the goal (otherwise it leads as near as it could)

    path: Vector2d[]

    the points of the path, in world units, from the start to the goal (or to the nearest cell): each cell's position, see Grid#offset. Empty when there is no path.

    trace?: Vector2d[]

    the cells the search looked at, in order, with trace (the goal is not among them)