I was curious about cloth simulation, so I grabbed some resources and dug in. This iteration of my cloth simulation is in python, but I plan to have a future iteration in c++ for speed.
I think this is about as far as this iteration will get. The whole system seems to be working oddly, and I am not sure where the possible problems are. I plan to do more research in cloth simulation techniques and get started on a second iteration.
But for now, I have to return to my school work, as I have been avoiding it to work on this.
The simulation in action:
I am glad to answer any questions. If there is an interest in it, I will probably clean up my blend file and upload a demo blend.