Exemplo n.º 1
0
 public static void FindPath(INavGrid grid, IGridPoint start, IGridPoint destination)
 {
     AStar.FindPath(start, destination, (p1, p2) => (p1.X - p2.X) * (p1.X - p2.X) + (p1.Y - p2.Y) * (p1.Y - p2.Y), p => grid.getPassableNeighbours(p));
 }