Craig Reynolds (1987) — click to add a predator
Three simple rules — separation (avoid crowding), alignment (steer like neighbors), cohesion (stay together) — produce complex flocking behavior. Click canvas to place a predator that boids flee.