https://www.youtube.com/watch?v=71o1LwBEAi0
Simple atoms-like simulation written in D (ignore C files, it's just raylib)
By the way, Atom uses raylib as renderer: https://www.raylib.com/
Currently, you can change start settings (particles count, types count, max force and max nearby particles count) when start simulation, but the rest
can only be changed from code, I'll fix it soon (or not soon)
All particles interact with some force. Force is inversely proportional to the square of the distance. There is some particle types, every type interact each other with different force (you can change count of types from code, by default, there is 3 types. Particles bounce from borders, but there is also friction that slows them down. Every launch all particle types get their own random color.
Actually, particles have no radius, they are just points, so radius of circles on the screen can be any value (you can change it from settings.d)
On Windows:
- build.bat - build debug
- buildr.bat - build release
- buildravx.bat build release with avx2 support (potencially this could improve perfomance)
Other OSs:
Use "dub run" with --build debug/release/release-avx2 or rename .bat files, there is no OS-related things inside, only dub call ¯(0_0)/¯