Skip to content

Path

Defined in: types.ts:10

Result of GridGraph.findPath.

cells: GridCell[]

Defined in: types.ts:14

Cells the path passes through, parallel to waypoints.


cost: number

Defined in: types.ts:16

Total step cost (diagonal steps count Math.SQRT2, scaled by each destination cell’s cost).


waypoints: Vec2[]

Defined in: types.ts:12

Tile-centre waypoints in world pixels, start cell through goal cell.