Boid Flocking

150 boids combine separation, alignment and cohesion to form moving groups. Triangles point along each boid's travel direction.

Running — fps
Boids 150
Pointer influence radius 140 px

Move the cursor over the flock: boids inside the highlighted circle steer away from the pointer and resume flocking once it leaves. Space pause/resume   R reset.