Boids flocking simulation written in rust. This is my first rust project.
left mouse button- place obstacleright mouse button- place food
git clone https://github.com/masonarmand/boids2d-rs.git
cd boids2d-rs
cargo build
Currently the simulation scales to O(n^2), since each boid has to loop through every other boid to calculate its velocity. This could be optimized with spatial hashing which would get the simulation closer to O(n).
