-
Cloth
Subdivide the object which becomes the cloth as many as your computer spec allows.
Select the object that becomes cloth > Physics Properties > Cloth
Select the object that becomes the obstacle > Physics Properties > Collision
Physics Properties > Check "Self Collisions" > Play the animation