A Physics Engine written in C using the SDL2 library to display simulations.
- ✅ Simulates basic physics principles.
- ✅ Utilizes the SDL2 library for rendering.
- 🛠 SDL2 (Simple DirectMedia Layer 2.0)
git clone https://github.com/Mohamedb91/Physics-Engine.git
cd Physics-Engine📌 For Ubuntu/Debian:
sudo apt-get update
sudo apt-get install libsdl2-dev📌 For macOS (using Homebrew):
brew install sdl2📌 For Windows:
- 🔹 Download the SDL2 development libraries from the SDL2 website.
- 🔹 Follow the installation instructions provided on the SDL website.
gcc -o physics_engine main.c Circle.c -lSDL2Ensure that the SDL2 library is correctly linked during compilation.
./physics_engineFor Windows, run:
physics_engine.exe-🔹 Upon running the program, a window will display the physics simulation. -🔹 You can interact with the simulation based on the implemented controls.
- 🚀 Contributions are welcome!
- 📌 If you want to contribute, please fork the repository and submit a pull request with your changes.
- 📌 This project is licensed under the MIT License.
- 📜 See the LICENSE file for more details.
Happy Coding! 🚀