This was one of my projects for CIS 563 – Physically Based Animation. The purpose of the project was to implement a cloth simulation using the Position Based Dynamics method. In PBD, we have different types of constraints such as fixed point, stretch and bend, that we try to solve in order to update the positions of the cloth vertices. This allows for a surprisingly fast simulation, as you can see in the videos below. You can also check out the full paper if you want to read more about the method.