Skip to content

Gedulis12/Partycl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Partycl

2D particle simulation written in C with SDL library. Inspired by Pezza's Work video

To build on linux run ./build.sh and run via ./main

Controlls:

Button Action
Middle mouse button spawns particles rapidly
Enter Spawns one particle
Left mouse button attracts particles to the cursor
Right mouse button pushess particles away from cursor
r removes all particles

Project is not complete, improvements are still needed:

  • currently physics calculations are framerate dependant;
  • performance is quite bad, simulations starts running below 60FPS at around ~1500 particles on my machine. Need to implement collision detection in "grid like fashion" instead of comparing positions of each particle with eachother;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published