So, about a year ago I worked on a couple of really fun projects with some classmates for our animation class. One of these projects was loosely defined as anything that leveraged a flocking algorithm, so we made a toy like game. As with many of my small game projects, we implemented this one in Unity to keep it simple. The game allows you to release ants into this apartment that will flock around in group and you can chose from a variety of objects to drop on them or put in their way. To help us learn about flocking algorithms, we put controls for all of the coefficients in the GUI so that we could tweak the algorithm on the fly.
I developed our collision detection between the ants and the walls, because the ant would need to be able to tell if the wall is on its right or left when it approaches it in order to avoid it properly. We also needed models for objects to drop on the ant so I made a few of them myself in Blender and created they prefabs for these objects in Unity. Finally, I also incorporated the stereoskopix scripts so that we could support the 3D functionality of the displays we had in the classroom.
If you’d like to play a browser friendly version of the game check it out here.
The project website can be found here.