Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits)

i love these types of algos, they always surprise me. in particular i was surprised to see how weird the directionality was with full cohesion, full perception range, and zero separation, zero alignment, i fully expected the fish to all just consolidate immediately in the center but they continued to bounce around for quite a while, and kept “momentum” even after all the fish were fully consolidated. groups of fish even broke off from their initial flocks! (i’m guessing that was the result of their “bouncing” behavior off of the bounds of the space.)

thanks for making this, it was interesting!

(+1)

Excellent guess!  When a boid hits the boundary of the sphere, it picks a new target position on the opposite side of the sphere and rotates towards it.  This leads to some boids turning left and others turning right and they have the potential to break off from the group.  But if the bounds are turned off, then using the settings you had, they would just swim in a tight group forever.  The bounds keep things interesting :)

Thanks for checking it out, glad you enjoyed it!