Boids Flocking
Emergent flocking behavior from three simple rules, created by Craig Reynolds in 1986. Learn more
The Three Rules:
- Separation - Avoid crowding neighbors
- Alignment - Steer towards average heading of neighbors
- Cohesion - Steer towards center of neighbors
Interactions:
- Click - Add obstacles the flock avoids
- Predator Mode - Mouse becomes a predator that scatters the flock
Keyboard:
- Space - Play/Pause
- R - Reset flock
- P - Toggle predator mode
- C - Clear obstacles
- F - Fullscreen