← Back to projects

Simulations & graphics

Boids Simulation

An interactive C++/SFML flocking simulation with adjustable separation, alignment, and cohesion parameters.

Project overview

A visual exploration of how local steering rules produce collective movement. Sliders make the influence of those rules visible while the simulation runs.

What it does

  • Simulate agents following separation, alignment, and cohesion rules.
  • Adjust steering speeds and forces through sliders.
  • Wrap agents around the window boundaries.
  • Render each agent’s orientation from its velocity.

Implementation details

Each steering rule examines nearby agents within a perception radius and contributes to acceleration. The update loop uses a fixed simulation interval and renders with SFML. Neighbor checks scan the flock directly, making this a clear baseline implementation for studying flocking behavior.

My contribution

I implemented the agent behavior, simulation loop, visual presentation, and interactive parameter controls.

Repository-linked recording on YouTube

YouTube

Recording availability has not been verified.

Let’s discuss software.

For software-development opportunities, a website for your business, or questions about my work, email me.