Skip to content

HarryFoster1812/Cloth-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloth Simulation Project

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.

Features

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

Dependencies

  • GLFW – windowing and input
  • Glad – OpenGL loader
  • Dear ImGui – GUI for simulation controls
  • OpenGL 3.3+

Build Instructions

  1. Clone the repository:
git clone <repo-url>
cd cloth-sim
cmake .. -DMAIN_PATH:STRING=../main.cpp -DCMAKE_BUILD_TYPE=Debug
make
./main

About

Real-time C++ cloth simulation with OpenGL, GLFW, and Dear ImGui. Features configurable physics, collisions, fly camera, and wireframe mode.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages