Each boid follows 3 simple rules:
- Cohesion: Move towards the center of neighboring boids
- Separation: Keep some distance to avoid crashing into other boids
- Velocity matching: Match one's own velocity (speed & direction) with the neighboring boids
All configurable parameters are set as constants in main.go
.
goboids uses Ebiten which requires some dependencies to be installed separately. Please follow the instructions here.