Dynamic Bird Flock Simulation with Boid Algorithms
This simulation models the behavior of bird flocks and predator-prey dynamics using 'boid' algorithms. Birds follow rules of alignment, cohesion, and separation to form flocks, while a predator actively pursues them. The prey birds maintain their flocking behavior but prioritize predator avoidance when threatened.
Rules
- Separation - Each bird tries to maintain a minimum distance from its neighbours to avoid crowding.
- Alignment - Each bird aligns its direction with the average direction of its nearby flock-mates.
- Cohesion - Each bird moves towards the average position of its nearby flock-mates.
- Velocity - Each bird has a maximum speed and steering force.
References
All content on this page — including photos, videos, and field audio recordings — was created by Karl-Heinz Müller, a Montréal-based wildlife filmmaker, sound recordist, and photographer. Founder of MUUUH and Québec Sauvage, he has spent over a decade documenting Canada’s natural habitats through immersive soundscapes and wildlife films. Learn more about Karl-Heinz
Last updated: 2025-11-14