Plain javascript simulation of a boids model.
Models swarming (flocking) behavior of bird-like objects by emergent behavior from simple rules:
- collision avoidance: avoid nearby boids
- velocity matching: move in a similar direction to nearby boids
- flock centering: stay close to nearby boids
Running on github.io