Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

38 lines (31 loc) · 1.05 KB

Boids

That is my implementation of the boids code.

Compilation

To compile this project, you need CMake, Boost, and the SFML library.

Simulations

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

TODO

  • 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