Creates a behavior with a single goal.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
A goal object.
A weight to be applied to the goal’s influence on an agent’s speed and direction.
A new behavior object. To assign a set of goals to an agent, use its