Skip to content

Jailior/sand-simulation-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sand Simulation Engine

The Sand Simulation Engine is a real-time particle-based falling sand simulation written in C++17. It simulates granular and fluid materials on a 2D grid, where particles interact according to material-specific physics rules. The simulation runs in a continuous loop, processing user input, updating particle positions based on physics, and rendering the results to an OpenGL-accelerated window.

The engine implements a cellular automata approach where each grid cell contains a particle with a specific material type. During each simulation step, particles are updated according to their material properties: sand particles exhibit granular behavior (falling and settling), water particles exhibit fluid behavior (flowing horizontally), and stone particles remain static.

Source: Sand Simulation Engine DeepWiki

Example Image:

Sand Simulation Engine Example Image

About

A pixel based physics simulation engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published