Skip to content

Auth0x78/GravitySim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GravitySim

GravitySim is a fun pass-time gravity simulation built with SDL3 and OpenGL. This project demonstrates interactive physics, rendering techniques, and an ImGui-powered user interface with docking support.

Features

  • Real-Time Simulation: Experience gravity-based motion in real time.
  • SDL3 & OpenGL Rendering: Leverages modern graphics with SDL3.
  • ImGui Docking: Integrated ImGui UI with docking and multi-viewport support.
  • Cross-Platform: Designed to run on multiple operating systems.
  • Customizable Controls: Supports keyboard and mouse input for interactive simulation.

Installation

Prerequisites

  • SDL3
  • OpenGL
  • ImGui along with its SDL3 and OpenGL backends
  • A C++17 compatible compiler

Build Instructions

  1. Clone the Repository

    git clone https://github.com/Auth0x78/GravitySim.git
    cd GravitySim
  2. Create a Build Directory and Configure the Project

    mkdir build && cd build
    cmake ..
  3. Build the Project

    cmake --build .
  4. Run GravitySim

    ./GravitySim

Usage

  • Movement: Use W/A/S/D to move around.
  • Mouse Interaction: Use the mouse to control camera or UI interactions.
  • UI Controls: The integrated ImGui interface provides additional simulation controls and settings.

Screenshots

image

Contributing

Contributions are welcome! If you would like to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push the branch (git push origin feature/YourFeature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License.

Acknowledgements

  • SDL3 for providing a powerful multimedia library.
  • ImGui for the immediate-mode GUI.
  • All contributors and users of GravitySim.

About

GravitySim is a interactive gravity simulation built with SDL3, OpenGL, and ImGui.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published