A value that defaults to 250, for the max number of iterations that will be considered valid. If the max is reached, no path is returned. To update it, use Astar.MAX = 400.
AStar.path2D(start : Vec, end : Vec, cost_get_fn : Fn, neighbors_get_fn : Fn, heuristic_fn : Fn) : List
Returns a path between start and end if one was found, or null otherwise. The path is a List of nodes received from start, end or neighbors_get_fn and are unmodified.
Note: Check if start/end are walkable before calling this function.