Elastic material

Hi, I want my .glb file to make interactive on click and drag like in this website Adult Swim - Elastic Man

Can you please help me? I do not know where to start.

The closest I can recall is this codepen from @sciecode


Yep, I haven’t seen many other examples of cloth/elastic simulations out there. The codepen Paul showed is an old example where the integration is done on the CPU, however I do have this version:

Which is slightly more involved, but it does the integration using shaders and is a lot more performant. However, depending on your intended model, you might have a hard time simply drag and dropping it, Because the algorithm relies internally on a model which has at most 6 connections for each vertex.