For the master course Game Physics, I worked together with a fellow student to create a cloth simulation in Unity. Our project involved position-based dynamics. We built our cloth as a mass-spring system using structural springs, and used Verlet integration to update the positions of the vertices. The cloth is attached to two handles that can be moved by a user. A tear limit was defined, so that when the cloth is stretched too much, it tears.
As an additional feature, rigid body collision was added where objects with different masses fall from the sky onto the cloth to study how the cloth deforms.
Maak jouw eigen website met JouwWeb