GridMeasurePathCostFunction: ((from, to, distance) => number)

Type declaration

    • (from, to, distance): number
    • Parameters

      • from: GridOffset

        The offset that is moved from.

      • to: GridOffset

        The offset that is moved to.

      • distance: number

        The distance between the grid spaces, or 0 if teleported.

      Returns number