90 frames; each agent blends separation, alignment, cohesion, a gentle pull to centre, and obstacle avoidance around the two circular obstacles, then integrates under a max-force / max-speed clamp.
Steering and flocking
This is a steering and flocking simulation written in plain C# on the .NET base library alone, from the GameDevelopment.Steering leaf - autonomous agents combining separation, alignment and cohesion, plus obstacle avoidance, seeking, and force/speed clamping. Each frame steps every agent and integrates its motion; the whole animation is rendered to a GIF from raw pixels with zero dependencies.
90 frames; each agent blends separation, alignment, cohesion, a gentle pull to centre, and obstacle avoidance around the two circular obstacles, then integrates under a max-force / max-speed clamp.
Each agent is drawn as a triangle pointing along its velocity, hue-coded by heading, with a short motion streak.
Separation steers away from crowding neighbours, alignment matches their average heading, cohesion pulls toward their centroid; obstacle avoidance projects a look-ahead and sidesteps; every steering force is truncated to a maximum and integrated with a speed cap - all analytic vector math in plain C# on the base library, fully deterministic.