D.A.S. — Other interesting works

Chain simulation

 

This is an interactive simulation of a swinging chain that I made with Python and Processing. I wound up essentially using the position-based dynamics approach, directly solving the constraint of each link once per frame and feeding back the results in a Verlet-style integration. Over many frames the whole system converges by relaxation: a pretty good trick.

Next Post