The direction collector acts as a controller for all the directional modules placed in the module stack before the direction collector.
Say you have an agent group with the following modules in the given order:
- grid layout
- state machine
- follow curve
- mesh avoidance
- direction collector
The direction collector will blend the result directions of the follow curve and mesh avoidance modules. The weight of those modules will be used a factor for evaluating the final direction (the evaluation is per agent and agent overrides are considered).
You can have multiple direction collectors applied to the same agent group, when this happens the first direction collector module will be considered by the following direction collector module as a standard direction module (using its weight and the direction result).
Attributes
Attributes | Type | Overridable | Description |
---|---|---|---|
maxTurnAngle | double | yes | The agent max turn angle. |
weight | double | yes | Weight. |