Initializes a path using the positions of the specified graph nodes.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of graph node objects containing 2D points.
The radius of the path.
A new path object.
Use this initializer to turn a list of nodes from a navigation graph (as returned by the
find method) into a path-following goal for an agent. If the nodes are
GKGraph objects, this initializer creates a 2D path; if the nodes are
GKGraph objects, this initializer creates a 3D path.
radius parameter defines the space occupied by the path—think of this space as the area created by sweeping a circle (or sphere, for 3D paths) of the specified radius along the path from vertex to vertex. Agents with path-related goals will attempt to move to or stay within this area.