A simple cloth simulation using mass-spring system. A web demo available here. It works better on desktop.
simulation.mp4
cargo run
- Hold left mouse button to exert FORCE around the area.
- Hold right mouse button to REMOVE links around the area.
- Hold mouse wheel to MOVE the camera.
- Scroll mouse wheel to ZOOM in/out the camera.
- https://www.sciencedirect.com/science/article/abs/pii/S1568494611003309?via%3Dihub
- https://gamedevelopment.tutsplus.com/tutorials/simulate-tearable-cloth-and-ragdolls-with-simple-verlet-integration--gamedev-519
- https://github.com/johnBuffer/ClothSimulation
- https://graphics.stanford.edu/~mdfisher/cloth.html