Instance Property


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


var obstacles: [GKPolygonObstacle] { get }

See Also

Working with Obstacles

func addObstacles([GKPolygonObstacle])

Adds new obstacles to the graph.

func removeObstacles([GKPolygonObstacle])

Removes the specified obstacle from the graph.

func removeAllObstacles()

Removes all obstacles from the graph.

func nodes(for: GKPolygonObstacle) -> [NodeType]

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