Skip to content

Mohamedb91/Physics-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 Physics Engine

A Physics Engine written in C using the SDL2 library to display simulations.


✨ Features

  • ✅ Simulates basic physics principles.
  • ✅ Utilizes the SDL2 library for rendering.

📦 Requirements

  • 🛠 SDL2 (Simple DirectMedia Layer 2.0)

🚀 Installation Guide

🔹 1️⃣ Clone the Repository


git clone https://github.com/Mohamedb91/Physics-Engine.git
cd Physics-Engine

🔹 2️⃣ Install SDL2

📌 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.

🔹 3️⃣ Compile the Program

gcc -o physics_engine main.c Circle.c -lSDL2

Ensure that the SDL2 library is correctly linked during compilation.


🔹 4️⃣ Run the Program

./physics_engine

For Windows, run:

physics_engine.exe

🎮 Usage

-🔹 Upon running the program, a window will display the physics simulation. -🔹 You can interact with the simulation based on the implemented controls.


🔥 Contributing

  • 🚀 Contributions are welcome!
  • 📌 If you want to contribute, please fork the repository and submit a pull request with your changes.

📜 License

  • 📌 This project is licensed under the MIT License.
  • 📜 See the LICENSE file for more details.

Happy Coding! 🚀

About

A Physics Engine written in C using the SDL2 library displaying simulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages