Model
Each agent separates from close neighbors, aligns its velocity and steers toward the local center. The simulation uses a periodic domain and a fixed step. Click or tap the field to apply a local repulsive impulse, or use the button to disturb the center.