HTML/JavaScript‎ > ‎

Boids

Boids.html is a swarm simulation, the birds follow these rules:

 - Separation: steer to avoid crowding local flockmates
 - Alignment: steer towards the average heading of local flockmates
 - Cohesion: steer to move toward the average position of local flockmates
 - Escape: steer away from the "eagle" aka mouse
 - Border constraints, here the position is just turned down

NEW: GAME VERSION:




The algorithm is similar to the C++ version of this simulation.

Č
ċ
boids.html
(10k)
El Samuko,
Nov 7, 2010, 11:11 PM
ċ
boids_game.html
(11k)
El Samuko,
Nov 7, 2010, 11:10 PM
Comments