Instance Method


Removes all obstacles from the graph.


- (void)removeAllObstacles;


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.

See Also

Working with Obstacles


The list of obstacle objects in the graph, each of which describes a polygon-shaped impassable area.

- addObstacles:

Adds new obstacles to the graph.

- removeObstacles:

Removes the specified obstacle from the graph.

- nodesForObstacle:

Returns the group of nodes corresponding to an obstacle in the graph.