So my IB Physics Exam is coming up soon and I need to study for it...
But I really wanted to do some coding since it's been some time. So I made this simulation of a pendulum, so that I can get a little bit of Physics and Coding in!
It uses 2D vector analysis to simulate a pendulum the exact way it would behave in real life! It is very customizable and kind of addicting. Enjoy!
Screen.Recording.2026-05-02.205912.mp4
There is a version of this hosted here on GitHub pages.
Option 1: Using just
just build
# append "release" to build with release modeYou need to install just for this to work.
Option 2: Using cmake
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -S . -B build
cmake --build build --config Release
# replace "Release" with "Debug" to build with debug mode