My implementation of boids in Snap
Each boid is controlled by three simple rules:
- coherence, move torwards other visible boids
- separation, move away from boids too close to you
- alignment, steer towards the average direction of other visible boids
The boids will arrange themselves in small groups similar to how birds do
https://eater.net/boids served as a pretty helpful reference
Created
August 21, 2022
Last updated
December 9, 2022
Published
December 8, 2022