https://github.com/pikachuxxxx/verletcloth
  
  
    A simple implementation of Verlet cloth  
    https://github.com/pikachuxxxx/verletcloth
  
        Last synced: 8 months ago 
        JSON representation
    
A simple implementation of Verlet cloth
- Host: GitHub
- URL: https://github.com/pikachuxxxx/verletcloth
- Owner: Pikachuxxxx
- License: mit
- Created: 2021-05-21T12:04:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-26T20:46:45.000Z (over 4 years ago)
- Last Synced: 2025-01-05T02:09:43.885Z (10 months ago)
- Language: C++
- Size: 7.88 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # VerletCloth
A simple implementation of Verlet cloth in OpenGL.
The particles are constrained using their rest distance, I used verlet integration to calculate the change in position of the particles. The corners of the cloth are just fixed using a boolean flag to not integrate them. Collision resolution is only available with a sphere using a simple radius check of the particle and the sphere.

# controls
Right click on the mouse and use WASD to move around the scene.
Use the imgui controls to tweak the behaviour of the cloth.