Skip to content

An implementation of Craig Reynold's Boids program to simulate the flocking behavior of birds.

Notifications You must be signed in to change notification settings

martines3000/autonomous-characters-3d

Repository files navigation

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)

About

An implementation of Craig Reynold's Boids program to simulate the flocking behavior of birds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published