Class: SwarmParticle | swarm.py | ||||||||
---|---|---|---|---|---|---|---|---|---|
The swarm particle is mainstay of the simulation. If the swarm particle is within a certain distance of the chase particle, it will attempt to match its velocity. If not, it will alter its velocity to approach the chase particle. Both the acceleration and speed of the particle is bounded above, and a random nudging effect is applied to result in a random element.
|