A real-time cloth physics simulation using Verlet Integration. Move your mouse to tear the fabric under gravity.
- 🧲 Gravity & constraints: Cloth is made of connected particles with distance constraints for realistic physics.
- ✂️ Mouse tearing: Drag your mouse over the cloth to break constraints and tear the fabric dynamically.
- ⚖️ Stable physics: Uses Verlet Integration with multiple constraint iterations per frame.
- ⚙️ Easy configuration: Adjust cloth size, spacing, gravity, tear radius, and iterations easily.
Replace with your own demo file after recording.
docs/demo.gif
- Python 3.9+
- OS: Windows / macOS / Ubuntu
git clone https://github.com/hiu154/Cloth.git
# Install dependencies
pip install -r requirements.txt