A colourful 3D aquarium where fish school together using Boids-like flocking rules. Each fish follows three simple rules — separation, alignment and cohesion — yet together they form beautiful, lifelike schools.
Emergent flocking behaviour from local rules. Fish avoid obstacles, seek food and form coordinated groups without any central leader.
Adjust fish count and speed. Click to drop food and watch the school react. Try different preset environments.
Fish schooling evolved as anti-predator defence. A school confuses predators through the "confusion effect" — many similar targets make it harder to single one out.