r/Simulated • u/HussuBro2807 • 10d ago
Interactive Chaotic Double Pendulum Simulation [OC] | SFML C++ |
Enable HLS to view with audio, or disable this notification
I have been working on a Double Pendulum simulation for the last few weeks, and I'm very happy with the results. Although it might not be the most accurate simulation, it demonstrates the chaotic nature of the double pendulum very well!
The simulation has tunable parameters and even a Multiple pendulum mode where you can have more than one pendulum with differences in angles, length, mass, etc to see how quickly they diverge even with small differences. The simulation was made using SFML and ImGui libraries in C++. Behind the scenes, I learned and used the RK4 method for solving the accelerations and velocities.
The simulation is available to download for windows here on itch: https://alifnull.itch.io/double-pendulum