A node in a navigation graph, associated with a point in continuous 2D space.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Together, a network of nodes form a graph that describes the navigability of a game world. Use graph nodes with a
GKMesh object to perform actions that relate to the network of nodes as a whole, such as pathfinding to determine routes through the network.
When you use the
GKMesh class to describe a game world in terms of open spaces interrupted by obstacles, GameplayKit automatically creates and manages
GKGraph instances that represent positions along possible paths that navigate around those obstacles.