StarLogo TNG is a downloadable programming environment that lets students and teachers create 3D simulations (and games!) for understanding complex systems. Create different classes of objects (Boids) and see how they interact together.
Using a simple drag-and-drop block based programming system similar to Scratch, you can explore complex systems and easily make compelling, rich simulation models that run in a 3D environment.