A real-time, interactive gravity simulation using C++ and OpenGL that visually demonstrates the physics of celestial motion โ built to be fast, cross-platform, and highly customizable.
-
๐ Real-Time Gravity Simulation
Simulates the motion of celestial bodies under mutual gravitational influence using OpenGL. -
๐ง Physics-Accurate
Implements Newtonian physics to model gravitational attraction, orbital dynamics, and elastic collisions with precision. -
๐๏ธ Interactive User Interface
UI designed with IMGui allowing real-time control of:- Mass
- Initial velocity
- Gravitational constant
-
๐ฅ๏ธ Cross-Platform Performance
Built using GLFW and GLAD for maximum portability. Runs smoothly across Windows, Linux, and macOS.
๐ฝ๏ธ Click the thumbnail above to see the simulation in action.
(ReplaceVIDEO_IDwith your actual YouTube video ID.)
| Category | Tools/Frameworks |
|---|---|
| Graphics | OpenGL |
| UI | IMGui |
| Language | C++17 |
| Windowing | GLFW |
| Loader | GLAD |
| Math Library | GLM |
