A C++ implementation of the Boids flocking algorithm.
- Command-line arguments for configuration
- Random initialization of boids
- Simple flocking behavior simulation
- Output of simulation data to CSV
Build with Meson:
meson setup buildDir
mseon compile -C buildDirRequires a C++20 compiler.
./boids > output.csvThis runs the simulation and writes the output to output.csv (redirected from stdout).
- Brute-force O(N^2) implementation
- World wraps at edges.