Predator Avoidance

Boids flee from predators while maintaining flocking behavior.

Flee: Escape predator (10°/tick, highest priority)
Separation: Avoid crowding (1.5°/tick)
Alignment: Match heading (5.0°/tick)
Cohesion: Move toward center (3.0°/tick)

Click to move predator • Fear radius: 150px

Boids: 120
Predators: 1
FPS: 60