Flocking Simulations
By Juan Carlos Ponce Campuzano, 15/December/2018
Introduction
Boids flocking behaviour is a classic model introduced by Craig Reynolds in 1986 to simulate the collective motion of birds, fish, or other groups of agents. Each boid (bird-oid object) follows three simple local rules:
- Separation (avoid crowding neighbours),
- Alignment (steer towards the average heading of nearby boids), and
- Cohesion (move towards the average position of neighbours).
Here you can find a set of flocking simulations inspired by Daniel Shiffman's Coding Challenge #124
Interactive simulations
Click on the image of title below to access the simulation.
If you found this site useful, you can support it with ❤️ PayPal or Patreon. I sincerely appreciate it. Thank you! 😃
References
- Craig Reynolds - Boids: Background and Update.
- Craig Reynolds - Original 1986 Boids simulation.
- Daniel Shiffman - Vectors - The Nature of Code.
- Daniel Shiffman - Combining Steering Behaviors: Flocking - The Nature of Code.
- Gary William Flake - The Computational Beauty of Nature.