Flying in Formation (2020) : Boids in Unity.
My Boids example, made with Unity.
Boids Features:
Cohesion, Alignment and Separation (Code Snippets Below the Video)
Helpful visual indicators
Code Snippets:
1. The C# function Separation handles the behavior that causes an agent to steer away from the center of all of its neighbors.
2. The C# function Alignment handles the behavior that causes a particular agent to line up with agents close by.
3. The C# function Cohesion handles the behavior that causes agents to steer towards the center of mass of all of its neighbors.