A C++ physics simulation project using modern OpenGL (GLFW) for real-time visualization of particles and fields. The system is modular, supporting extensible simulation laws (Newton's Laws), and is designed for future integration with ImGui for interactive UI controls.
The main programming language, chosen for its performance and modern features, enabling efficient simulation and extensible architecture.
Used for rendering the simulation in real time, handling window/context creation, and drawing particles and fields.
Build system generator for cross-platform compilation and easy dependency management.
Immediate Mode GUI library for C++ to provide interactive controls and visualization.
Clone this repository to your local environment:
git clone https://github.com/Mulekotd/physics-simulation.git
cd physics-simulation
Make sure you have the following installed on your system:
- C++17 compatible compiler (e.g., g++ 9+)
- CMake 3.10+
- OpenGL development libraries
- GLFW 3.x
On Ubuntu/Debian:
sudo apt update
sudo apt install build-essential cmake libglfw3-dev libgl1-mesa-dev
mkdir build
cd build
cmake ..
make
./physics-simulation
Feedback, suggestions, and contributions are welcome!
If you have ideas for improvements or encounter any issues, please open an issue on GitHub.