A set of goals that together influence the movement of an agent.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
By combining multiple goals (
GKGoal objects) you can create complex behavior, such as groups of agents (
GKAgent objects) that move together naturally. To assign a set of goals to an agent, use its