removeAllObstacles()
Removes all obstacles from the graph.
Declaration
func removeAllObstacles()Discussion
After removing obstacles, the GKObstacleGraph class automatically creates, removes, or rearranges nodes and edges where necessary to describe the navigable area around the remaining nodes.