Skip to content
Notifications You must be signed in to change notification settings

abominablepug/charged-shootout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

25d9f66 · · Dec 30, 2025

History

22 Commits
Dec 30, 2025
Dec 30, 2025
Dec 30, 2025
Dec 27, 2025
Dec 30, 2025
Dec 30, 2025
Dec 30, 2025
Dec 30, 2025
Dec 30, 2025
Dec 27, 2025

Repository files navigation

Charged Shootout

What's this app?

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.

How to use?

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.

Purpose

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.

Support the Creator

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 Usage

AI was used in the project for debugging.