Skip to content

The Gravity Simulator models celestial mechanics using Newtonian physics to simulate gravitational interactions between multiple bodies. **Cross-platform**

License

Notifications You must be signed in to change notification settings

vertexArrayobj/Gravity-Simulator-Cpp

Repository files navigation

Gravity Simulator C++

A C++ physics simulation that models gravitational interactions between celestial bodies.

Project Screenshot

Features

  • N-body gravitational simulation
  • Real-time visualization
  • Configurable physical parameters

Prerequisites

  • CMake 3.15+
  • C++20 compatible compiler

🚀 Installation & Build

# Run the batch file
setup.bat

[ Note: You only need to do this once ]

After that you can continue:

For Visual Studio (MSVC)

# Debug configuration
cmake --preset windows64-VS-Debug && cmake --build build/windows64-VS-Debug

# Release configuration
cmake --preset windows64-VS-Release && cmake --build build/windows64-VS-Release

For GCC/Ninja

cmake --preset windows64-GCC-Debug && cmake --build build/windows64-GCC-Debug

🤝Contributing

Pull requests are welcome. Please open an issue first to discuss proposed changes.

⭐ Star this repo if you find it useful

"We are all in the gutter, but some of us are looking at the stars." - Oscar Wilde

🐛 Report issues in our Issue Tracker

Thank you for using Gravity Simulator! ❤️

About

The Gravity Simulator models celestial mechanics using Newtonian physics to simulate gravitational interactions between multiple bodies. **Cross-platform**

Topics

Resources

License

Stars

Watchers

Forks