What is Boids Simulation?
Boids are an algorithmic model of individual entities (boids) moving in a three-dimensional space. The model was developed by Craig Reynolds to simulate the flocking, schooling, and herding behaviors observed in nature. In this context, each boid follows simple rules: separation, alignment, and cohesion.
The hammerhead shark school simulation uses these principles to mimic how real hammerhead sharks move together in schools.
How Does Coordination Work?
In the simulation, each boid (shark) follows three main rules: avoid collisions with other boids (separation), align its movement direction with nearby boids (alignment), and stay close to them (cohesion). These rules are governed by a set of equations that define how each boid reacts to its neighbors.
The strength of these interactions can be adjusted using the coordination slider, allowing you to observe how different levels of coordination affect the school's behavior.
Why Does Turbulence Matter?
Turbulence in water can significantly impact how hammerhead sharks coordinate. In the simulation, turbulence is represented as random movements that disrupt the boids' paths. This helps to model real-world conditions where environmental factors like currents and eddies affect fish schools.
Understanding these effects is crucial for marine biologists studying the behavior of schooling fish in various environments.
Sensing Range and School Size
The sensing range slider controls how far each boid can perceive its neighbors. This parameter influences how tightly the school can form and how quickly it can respond to changes in direction or threats.
School size, controlled by shark-count, affects the complexity of interactions within the group. Larger schools may exhibit more complex behaviors but are also more susceptible to disruptions.
Frequently asked questions
How does separation differ from alignment and cohesion?
Separation ensures boids avoid collisions with each other by moving away, while alignment makes them move in the same direction as nearby boids for coordinated movement, and cohesion keeps them close to maintain group integrity.
Can this simulation accurately predict real hammerhead shark behavior?
While the simulation provides a simplified model of schooling behaviors, it cannot perfectly replicate all aspects of real-world interactions. However, it offers valuable insights into the basic principles governing such behaviors.
What role does turbulence play in the simulation?
Turbulence simulates unpredictable water movements that can disrupt school formations and affect boid behavior, reflecting real environmental challenges faced by hammerhead sharks.
How does changing the sensing range impact the simulation?
Adjusting the sensing range changes how boids perceive their surroundings and interact with each other. A smaller range results in more isolated movements, while a larger range leads to tighter group cohesion and more coordinated behavior.
Try it live
Everything above runs in your browser — open Hammerhead Shark School Coordination (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Hammerhead Shark School Coordination (2D) simulation