A single agent moves as the sum of three vectors — separation (pushed apart when close), alignment (matches heading), and cohesion (drawn to the center). Arrows light up on the representative agent

260agents · separation · alignment · cohesion canvas · steering · requestAnimationFrame