Have you tried using nCloth? It's not as difficult as it seems. Try looking up a tutorial for making a flag, and then turn the legs into a passive collider.