GridMeasurePathCostFunction3D: (
    from: Readonly<GridOffset3D>,
    to: Readonly<GridOffset3D>,
    distance: number,
    segment: DeepReadonly<SegmentData>,
) => number

A function that returns the cost for a given move between grid spaces in 3D. In square and hexagonal grids the grid spaces are always adjacent unless teleported. The function is never called with the same offsets.

Type Parameters

  • SegmentData = {}

Type declaration