Chaotic Swarm

mbk-chaos

I started this with just wanting to do swarming. After tinkering with the swarming behavior for a while I decided that the particles should have trails. After I added the trails I noticed that in looked like the trails were part of the particles, so I put the trails into a different buffer and drew outlines around the particles in the main buffer. The mouse position only changes the velocity. The chaos comes from the velocity multiplied by its effect constant outgrowing the bounds by which particles can attract each other. This results in particles traveling only in similar directions creating swarms when the mouse is to the right, and particles clustering into groups when the mouse is on the left.

Comments are closed.