findPath
findPath(
grid,start,goal,opts?):Cell[] |null
Defined in: ai/nav/pathfind.ts:50
Find a grid path from start to goal, inclusive of both endpoints. A goal
that cannot be reached yields the route to the reachable cell NEAREST it, and
the caller sees it fell short because it named the goal. Null means the START
is nowhere: a cell off the grid has no route from it.
Parameters
Section titled “Parameters”PathfindOptions = {}
Returns
Section titled “Returns”Cell[] | null