Returns the group of nodes corresponding to an obstacle in the graph.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An obstacle in the graph.
An array of nodes representing the navigable points nearest to each of the obstacle’s vertices.
Adding obstacles to a graph creates additional graph nodes corresponding to the navigable points nearest to each of the obstacle’s vertices. The
GKObstacle class automatically creates, removes, or rearranges these nodes where necessary, and automatically connects or disconnects other nodes so that no path between nodes passes through an obstacle.