Flock Sim is an interactive 3D simulation of Craig Reynold's Boids (bird-oids), written in C++ and rendered with OpenGL.
Alignment:boids steer in the average direction of their neighborsCohesion:boids steer toward the average position of their neighborsSeparation:boids steer away from neighbors that get too closeWind:boids can be steered by gusts of windPredators:predator boids track prey boids, who run away- Spatial hashing scheme for efficient rendering
- Interactive GUI for users to adjust simulation parameters
- Immersive background (skybox) with different themes to choose from
- Custom 3D assets (models, textures, etc.) created from scratch in Blender
| Command | Key |
|---|---|
| Pause simulation | P |
| Move forward | N |
| Restart simulation | R |
| End simulation | ESC |
| Reset camera | SPACE |
| Rotate camera | right click |
| Pan camera | right click |
