GKGraphNode2D
A node in a navigation graph, associated with a point in continuous 2D space.
Declaration
class GKGraphNode2DOverview
Together, a network of nodes form a graph that describes the navigability of a game world. Use graph nodes with a GKGraph, GKObstacleGraph, or GKMeshGraph 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 GKObstacleGraph or GKMeshGraph class to describe a game world in terms of open spaces interrupted by obstacles, GameplayKit automatically creates and manages GKGraphNode2D instances that represent positions along possible paths that navigate around those obstacles.
To learn more about graphs and pathfinding, see Pathfinding in GameplayKit Programming Guide.