A real-time cloth simulation implemented in C++ using OpenGL, GLFW, Glad, and Dear ImGui. This project simulates cloth dynamics with interactive controls and physics-based behavior.
-
Configurable Cloth Properties
- Adjustable particle mass, spring constants, and pinning.
- Real-time updates for simulation parameters.
-
Simulation Controls
- Pause/resume simulation.
- Toggle wireframe mode for debugging.
-
Collision Handling
- Cloth interacts with cubes and planes in the scene.
-
Camera
- Fly camera for free exploration of the scene.
- GLFW – windowing and input
- Glad – OpenGL loader
- Dear ImGui – GUI for simulation controls
- OpenGL 3.3+
- Clone the repository:
git clone <repo-url>
cd cloth-sim
cmake .. -DMAIN_PATH:STRING=../main.cpp -DCMAKE_BUILD_TYPE=Debug
make
./main