Skip to content

LumenNoctis/Boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids

Flocking simulation.

alt text

  • Rule 1: Move away

  • Rule2 : Move closer

  • Rule3 : Follow


TODO

  • Follow mouse

  • Avoid Obstacles

  • TUrn rules on and off

  • Refactor

  • Fix wall bounce

NOTES

At the moments, each boid is checking the position and orientation of every other boid in the simulation, altough simple this method is highly unneficent and I intend to replace it some day in (hopefully) the close future.

On collision with a wall the boid will be teleported to the other side of the screen. That is because if they bounce off the wall, they simply become stuck and they all end up forming a nice line alongside it. I probably won't fix this though

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published