Flocking boids simulation

This is a simulation of independent bodies that react on their surroundings. There is no single boid that takes the lead. Flocking behaviour emerges from different boids reacting on each other as they move through the space, just like a flock of birds and schools of fish. Every boid has 3 forces acting upon it: