A phenomenon in which self-propelled individuals, using only limited environmental information and simple rules, organize into an ordered motion. This ordering even occurs at two dimensions where ordering is not possible equilibrium systems.
![](https://blog.iaac.net/wp-content/uploads/2024/03/fish-flock.jpg)
Boid Movement
![](https://blog.iaac.net/wp-content/uploads/2024/03/SLIDE1-2.png)
Different Behaviors
![](https://blog.iaac.net/wp-content/uploads/2024/03/SLIDE2-1.png)
Alignment Behavior
Alignment ensures that individual agents within a flock move in a consistent direction, fostering cohesive group movement. It influences how closely neighboring agents align their trajectories, contributing to collective patterns like schooling or swarming.
![](https://blog.iaac.net/wp-content/uploads/2024/03/CLAUDIA-GOWGIEL_FISH-FLOCKING-BEHAVIOR.jpg)
Cohesion Behavior
Cohesion regulates the density and spatial organization of a flock by encouraging agents to stay close to their neighbors. It promotes clustering and unity within the group, influencing the overall stability and behavior of the flock.
![](https://blog.iaac.net/wp-content/uploads/2024/03/CLAUDIA-GOWGIEL_FISH-FLOCKING-BEHAVIOR-1-1.jpg)
Separation Behavior
Separation dictates the spacing between individual agents within a flock, preventing collisions and overcrowding. It governs how agents maintain safe distances from one another, affecting the group’s structure and dynamics.
![](https://blog.iaac.net/wp-content/uploads/2024/03/CLAUDIA-GOWGIEL_FISH-FLOCKING-BEHAVIOR-2.jpg)
PSEUDO CODE
![](https://blog.iaac.net/wp-content/uploads/2024/03/CLAUDIA-GOWGIEL_FISH-FLOCKING-BEHAVIOR-3.jpg)
Alignment Behavior
![](https://blog.iaac.net/wp-content/uploads/2024/03/02_alignment-ezgif.com-video-to-gif-converter-1.gif)
Cohesion Behavior
![](https://blog.iaac.net/wp-content/uploads/2024/03/03_cohesive-ezgif.com-video-to-gif-converter.gif)
Separation Behavior
![](https://blog.iaac.net/wp-content/uploads/2024/03/04_seperation-ezgif.com-video-to-gif-converter.gif)
Final Results
![](https://blog.iaac.net/wp-content/uploads/2024/03/05_final_fish-ezgif.com-video-to-gif-converter.gif)
![](https://blog.iaac.net/wp-content/uploads/2024/03/06_topview-ezgif.com-video-to-gif-converter.gif)
![](https://blog.iaac.net/wp-content/uploads/2024/03/01_turntable-ezgif.com-video-to-gif-converter.gif)