Multi-Agent Steering Sandbox

Vector Physics v2.4
Agent Count 80
Cohesion Index 0.84
Avg Speed 3.45 u/f
Kinetic Energy 482 J
Active Nodes 2

Steering changes velocity before moving position

Read the explanation

The source adds each applied steering vector to acceleration. Update then adds acceleration to velocity, limits velocity magnitude to four point five, advances position, and clears acceleration. With velocity one zero and acceleration zero point two zero, next velocity is one point two zero and displacement is one point two pixels. The bars show one and one point two at three hundred pixels per unit. This is a frame-based toy kinematic update without an explicit mass or physical time step. If velocity is four point four zero and accumulated acceleration is zero point two zero, the tentative speed is four point six. The native vector limit reduces that to four point five before position moves. The bars compare tentative and capped magnitudes at one hundred pixels per unit. The cap is imposed on total velocity, while force limits are applied separately within steering behaviors; adding several behaviors can accumulate more than a single behavior maximum. The attractor computes desired velocity toward its target, subtracts current velocity, then limits force by maximum force times strength. A repellor uses twice that limit times strength. At maximum force zero point two and strength one, the respective force ceilings are zero point two and zero point four. These bars use one thousand pixels per unit. These are configured limits, not guarantees that every actual force reaches the cap or that the swarm converges.

Super generates helpful tools and automates fact-checking across the internet proactively. If you enjoyed this tool, build your own with Super and share it with a friend.