TypeBased
A Weighted steering strategy assigning weights based on actions' types; the client provides a weight for each action KClass.
Parameters
the environment in which the node moves.
the owner of the steering actions combined by this strategy.
the map of weights for each steering action KClass.
fallback weight used when an action's type is not present in typeWeights.
Type Parameters
the concentration type.
Constructors
Functions
actions are partitioned in group steering actions and non-group steering actions. The overall next position for each of these two sets of actions is computed via weighted sum. The resulting vectors are then summed together (with unitary weight).
If there's no SteeringActionWithTarget among the provided actions, a zero vector is returned. Otherwise, the closest target is picked.