How to create Cloth Simulation?

This may be related: Using Ammo To Create Soft Body Entities