HeatBugs 3D

By Sean Luke

This example uses the 2D HeatBugs model, but displays it in a 3D fashion. We suggest you set "Draw Polygons As... Edges" in the 3D Options (the wrench icon).

HeatBugs is a model originally developed on the Swarm toolkit. The environment is a toroidal 100x100 grid of "heat", populated with 100 "bugs" with built-in heaters. The bugs prefer it to be not too warm and not too cold (the range differs from bug to bug), and will follow the gradient towards regions more to their liking. The heat diffuses and evaporates at the provided rate.