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.
- 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.
-
Clone the Repository
git clone https://github.com/Auth0x78/GravitySim.git cd GravitySim
-
Create a Build Directory and Configure the Project
mkdir build && cd build cmake ..
-
Build the Project
cmake --build .
-
Run GravitySim
./GravitySim
- 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.
Contributions are welcome! If you would like to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push the branch (
git push origin feature/YourFeature
). - Open a Pull Request.
This project is licensed under the MIT License.