Obstacle Avoidance

Boids navigate around static obstacles while flocking.

Avoid Obstacles: Steer away from barriers (8°/tick)
Separation: Avoid crowding (1.5°/tick)
Alignment: Match heading (5.0°/tick)
Cohesion: Move toward center (3.0°/tick)

Click to add obstacles • Obstacle detection: 50px ahead