Creates a behavior with the specified mapping of goals to their weights.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
A dictionary whose keys are goal objects, where each value is the weight to be applied to the corresponding 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