Soft Swarm Behaviour
The script follows flock birds pattern rules where every agent in the system comes after other agents behaviours. At a particular time, the flock is denser or its shape changes due to external actions (in this case mouse location).
Swarm density and internal shape vary depending mouse’s position on the screen. Horizontal mouse coordinate affects density while vertical location modifies the internal sweep’s sections.
The final result reveals a soft swarm flocking behaviour that varies over time and reflects its relation with external operators.