Agency, Density, Caution
Project 2 for Foundation of Computer Graphics was a configurable viral transmission simulation using small circles with limited agency to simulate viral spread. In addition to taking a multi-threaded approach to increase the number of individuals that could be simulated, the various visual states were pre-rendered and cached for quick blitting to the canvas. Individual agents were given a few additional parameters that influenced behavior around others when navigating to their goal points. The primary addition was a caution parameter that increased as the agent came into contact with known infected individuals. Higher caution values would cause the agent to distance themselves from others, put on a mask, and be more likely to avoid behaviors that would lead them to bumping into other individuals.