Written using C++ and the Raylib library this project simulated charged particles interacting with eachother within a conductive box. The simulation allows the user full control over charge, velocity, position, time and anything that they may want to truly visualize the invisible world of electrostatics. The simulation itself uses RK4 integration to manage the time steps, a force calculator to determine acceleration and movement, and the marching squares algorithm to display potential differences and the resultant fields of the particles.
To use the app simply download the release and then run it on your computer. Alternatively you can clone the repo and then run the script provided thought that's lowkey diff so just stick to the release. Once inside the game you can use your left click button to create a positive particle and right click to create a negative particle. Dragging will allow the user to then control the size and charge. While holding the user can also move the scroll wheel to apply a certain velocity to the particle they're creating.
This project was created to improve insights into a filed of physics of which I knew little about prior to this project. Conveniently HackClub Accelerate was running a project for it as well so I decided to give it a shot.
Imagine this, your a broke high school student trying to impress some judges with an application when suddenly you get burnt out. By the time your no longer burnt out it's Christmas and the deadline looms. Time is of the essence but your not even sure how the physics works. Long story short star, fork, and share the repo with everyone you know currently and priorly.
AI was used in the project for debugging.