Robot heading (cone) Boundary volume
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Robot Swarm Flocking — Metric vs Topological Neighbor Selection

This simulator runs the Reynolds separation/alignment/cohesion flocking algorithm on a 3D swarm of simulated robots and lets you switch the neighbor-sensing model between two real design choices used in swarm robotics: a fixed-radius "metric" sensor range (classic boids, proximity sensors) and a fixed-count "topological" nearest-k model (matching the interaction rule measured in real starling flocks and preferred in robotics for its bounded communication cost). Tune the three rule weights, change robot density, and trigger a scatter disruption to see live polarization, neighbor-count, and spread readouts reveal why topological sensing keeps a swarm coherent when metric sensing fragments it.