Cloth Simulator

C++ SFML based simple 2D cloth simulator.

Overview

Program provides realistic tearing and moving/dragging of the cloth. The simulation works based on the principles of Verlet integration. The cloth consists of particles and constraints (sticks connecting the particles). The force is applied to the small particles and sticks adjust accordingly.

Cloth Simulator Demonstration

Prerequisites

The program was developed in C++14. Additionally, the SFML library was used for graphics.

Future Improvements/Sophistications

  • Dynamic Tearing by Distance - weight of the cloth itself could result in tears
  • Texture and other Graphics - current implementation is kept simple for demonstration, but better graphics could be added

Details

  • Author - Arastun Mammadli