Flock Cohesion Vector
PureFlockCohesionVectorCalculates the cohesion steering vector for flocking behavior (move toward group center).
Type: Pure (no side effects)
Category: Fortuna|AI & Navigation
Keywords: ai & navigation
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| AgentPosition | FVector | — | AgentPosition parameter |
| Neighbors | TArray<FVector> | — | Neighbors parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | FVector | ReturnValue output |
Example Use Cases
Example 1
Fish school staying together.
Example 2
Enemy squad maintaining formation cohesion.