The project is still under moderate development, so far the exact direction of it isn't know. It can quickly change aspect as it can stay as it is for months.
The project has been developed using SDL2, SDL2_Image and SDL2_TTF, for more information about what it is you can check it here.
This project is just a poor attempt of applying a couple of basic electrostatics principles, that have a n-body-simulation-alike feeling. Nothing is accurately coded or represented.
In this simulation you have 3 distinct types of elementary particles, negatively charged ones (red dots), positiviely charged ones (green dots) and neutrally charged particles (white dots).
The colors of the lines represent the attraction between two bodies. Green line signifies that the bodies are attracted to eachother, red line means that the bodies are repulsing eachother. Once two bodies collide they cancel eachother becoming a netural particle. Since in this simulation a neutral particle have no sense of charge, they're entirely stationary.
This project has been developed on Linux so far, so here's a quick shortcut on what packages you should install:
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-devOnce you've got the libraries installed just do make in the project root directory and you should be able to run it flawlessly.
This is how a simulation with initially 10 particles launched looks like.
- The text rendering is very choppy.
- Computation algorithm can potentially be improved.
Vassvik - Helped to put the base of a much more accurate physics behaviour.