A node in a navigation graph, associated with a position on a discrete two-dimensional grid.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Gameplay
Kit
Declaration
class GKGridGraphNode : GKGraph Node
Overview
Together, a network of nodes form a graph that describes the navigability of a game world. Use graph nodes with a GKGrid
object (and methods of its superclass GKGraph
) to perform actions that relate to the network of nodes as a whole, such as pathfinding to determine routes through the network.
To learn more about graphs and pathfinding, see Pathfinding in GameplayKit Programming Guide.