Skip to content

0xIrakli/ParticleSim

Repository files navigation

ParticleSim

Particle simulation in c++ using raylib. ↓↓screenshots below↓↓

Download

Go to Actions tab. Click on the latest workflow run, download the build-artifacts, Extract and enjoy!

Usage

Just launch the exe in the build/Release/ folder and drag your left mouse button in the window to attract the particles and right to repulse them. Press Space on keyboard to apply a force to each particle pointed to its origina position (just try its really cool). Press "A" on keyboard to take a screenshot.

Variables

Feel free to play around with the the code. If you want to edit some variables just clone the repository, edit them and launch the build.bat file in the main directory. try the "particleCount", "WIDTH" and "HEIGHT" variables to get started. (you will find the build exe in the build/Release/ directory. OpenCV is required to build)

Video (fps is low because im recording and that affects the physics a bit.)

test.mp4

Screenshots

screenshot1

screenshot2

screenshot3

screenshot4

screenshot5

screenshot6

screenshot7

screenshot8

About

Particle simulation using c++ and raylib.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors