Swarm

Swarm is an artificial intelligence algorithm for producing natural-looking movement in large swarms of creatures. Another similar algorithm to use in similar situations is Craig Reynold's flocking algorithm. But the flocking algorithm is computationally expensive, so a swarm is a better alternative if you don't need accuracy, but a convincing organic movement of hundreds of creatures. The swarm you can test here is using up to 2000 creatures.

Images

Instructions

Move camera:
WASD
Zoom in/out:
I/O or Mouse wheel
More spiders:
M
Less spiders:
L
Flee / not flee:
Left mouse
Quit
Escape

Play it

Share me

twitter icon facebook icon

...and follow me on Twitter: @eriknordeus

Donations: PayPal and crypto