Skip to content

henri-gasc/Boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published