Flock Alignment Vector

Pure
FlockAlignmentVector

Calculates the alignment steering vector for flocking behavior (match neighbors' heading).

Type: Pure (no side effects)
Category: Fortuna|AI & Navigation
Keywords: ai & navigation

Inputs

NameTypeDefaultDescription
AgentVelocityFVectorAgentVelocity parameter
NeighborVelocitiesTArray<FVector>NeighborVelocities parameter

Outputs

NameTypeDescription
ReturnValueFVectorReturnValue output

Example Use Cases

Example 1

Birds aligning flight direction with flock.

Example 2

Vehicles merging into traffic flow.