Initializes a path with the specified array of 2D points.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
An array of 2D points representing the vertices in the path. The order of points in this array determines the order in which an agent follows the path.
The number of elements in the
The radius of the path.
YESif the path’s end point should connect to its start point; otherwise
A new path object.
radius parameter defines the space occupied by the path—think of this space as the area created by sweeping a circle 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.
cyclical parameter determines whether the path loops around on itself. If the path is cyclical, an agent with a follow-path goal will proceed around the path indefinitely. If the path is not cyclical, an agent following the path will stop at the last point in the path.