Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.34 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.34 KB

3D Boids simulation

demo

Sources

Some sources I used for inspiration and help building this.

Boids

Octree

Language and libraries used

  • Rust 1.66 (programming language)
  • Bevy 0.9.1 (game engine)
  • Rayon 1.6.1 (multithreading)
  • Nalgebra 0.31.4 (linear algebra library)

Implementation

  • The Naive and the Octree implementation include multithreading
  • Menu for changing the parameters of the simulation
  • Octree is implemented as an "arena allocated tree"
  • The Octree is built in every call of the function "flock" - every time we update the speed of the boids

Analysis

  • Results of benchmarks

meritve

Possible improvements

  • Updating of Octree (instead of rebuilding)
  • Faster rendering speed (rendering has issues at higher number of boids)