Skip to content

akhilRathour/Gravity-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŒ Gravity Simulation with C++ and OpenGL

C++ OpenGL GLFW GLAD IMGui GLM

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.


โœจ Features

  • ๐ŸŒ 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.


๐ŸŽฎ Demo

Watch Demo

๐Ÿ“ฝ๏ธ Click the thumbnail above to see the simulation in action.
(Replace VIDEO_ID with your actual YouTube video ID.)


๐Ÿงฐ Tech Stack

Category Tools/Frameworks
Graphics OpenGL
UI IMGui
Language C++17
Windowing GLFW
Loader GLAD
Math Library GLM

๐Ÿ“‚ Project Structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published