amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

[Experimental] Implement Boids algorithm for creature movement #73

Open sunreef opened 5 years ago

sunreef commented 5 years ago

Based on the perception system I implemented in a previous PR, I made a first version of Boids algorithm for the Herbivores (for now).

They now try to flock together while keeping a minimum distance, try to match velocities, avoid Carnivores and stay inside world bounds in a more flexible manner than with collision testing.

I disabled a bunch of systems to test my implementation, hence the "Experimental" tag.