This is a simple implementation of the Boid algorithm in C++ using the Raylib library. The Boid algorithm is a simple algorithm that simulates the flocking behavior of birds. The algorithm is based on three simple rules:
- Separation: Boids will avoid getting too close to each other.
- Alignment: Boids will try to align their velocity with the average velocity of their neighbors.
- Cohesion: Boids will try to move towards the average position of their neighbors.
- Clone the repository using
git clone --recursive https://github.com/burakssen/boids.git - Run
mkdir build && cd build - Run
cmake .. - Run
make - Run
./boids
