Skip to content

Jet-b/boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids

This is a basic repo to build a boids project using raylib and imgui

Boid state is stored as flat arrays, not per-boid objects, so the simulation can later move to GPU compute for large flocks.

Velocities are stored in pixels per simulation second. Global values such as timeScale, maxSpeed, and the world dimensions live in SimulationParams; that structure can later be represented by a GPU uniform/constant buffer. Each boid starts in a random direction at a random speed up to maxSpeed.

Configure with -DBOIDS_DEBUG=ON to enable velocity visuals and debug traces. Press T while the simulation is running to trace the current state of every boid through the custom Raylib trace callback.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors