This project is for leaning purpose only.
Boid is an program, developed by Craig Reynolds, to simulate the flocking behavior of birds. The simulation has to obey 3 rules:
- Separation: steer to avoid crowding local flockmates.
- Alignment: steer towards the avarage heading of local flockmates.
- Cohesion: steer to move towards the average position of the local flockmates.
To compile this program you will need the gcc and raylib installed. after that clone the repo and do the following steps:
$mkdir build && cd build
$cmake ..
$make
$./bin/boid