That is my implementation of the boids code.
To compile this project, you need CMake, Boost, and the SFML library.
You can use the keyboard to interact with the simulation
key | effect |
---|---|
B |
Add a boid |
O |
Add an obstacle |
Ctrl +S |
Toggle the 'Separation' rule |
Ctrl +A |
Toggle the 'Alignment' rule |
Ctrl +C |
Toggle the 'Cohesion' rule |
Ctrl +O |
Toggle the 'Obstacles' rule |
Ctrl +B |
Toggle the 'Borders' rule |
Pressing F |
Follow the boid closest to the mouse (when pressed) |
Releasing F |
Return to the main view |
- Add obstacles
- Correct boids behaviour around obstacles
- Allow boids to adopt a tear-drop shape around the obstacles
- Takes arguments from the command line
- Allow saving output to file
- Allow inputs from the keyboard
- add objects
- change rules
- follow boid
- Speed up the algorithms
- Allow adding new rules easily
- Make the code easier to read
- Go 3D