Skip to content

masonarmand/boids2d-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boids2d-rs

Boids flocking simulation written in rust. This is my first rust project.

Controls

  • left mouse button - place obstacle
  • right mouse button - place food

Compiling

git clone https://github.com/masonarmand/boids2d-rs.git
cd boids2d-rs
cargo build

Optimization

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).

About

Boids flocking simulation written in rust.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages