Boids Simulation - Python

preview_player
Показать описание
Very aesthetically pleasing simulation of the behavior of schools of fish, and flocks of birds 🐟🐠 🦆🦆

Based on what Craig Reynolds refers to as 'Boids' in his paper about Flocks, Herds, and Schools.

Following three simple rules,

Seperation - Each member stears away from one another
as to not collide 👀

Alignment - Each member of the boid aligns himself in
order to travel in the same direction as those arround him 🧭

Cohesion - Each member tends towards the middle of the
pack 👨‍👩‍👧‍👦

as well as a few others I added, such as having them avoid predators and walls, the blue dots create a pretty accurate simulation of the behavior of flocks of birds, schools of fish and herds of sheep.
Рекомендации по теме
Комментарии
Автор

Very nice, the speed variation make them feel way more organic

Rafale
visit shbcf.ru