Merge pull request #1611 from alantrrs/master

Fix simple cloth example. Closes #1606
This commit is contained in:
erwincoumans
2018-03-26 17:17:45 -07:00
committed by GitHub

View File

@@ -121,6 +121,7 @@ void SimpleClothExample::createSoftBody(const btScalar s,
fixed,true);
cloth->getCollisionShape()->setMargin(0.001f);
cloth->getCollisionShape()->setUserPointer((void*)cloth);
cloth->generateBendingConstraints(2,cloth->appendMaterial());
cloth->setTotalMass(10);
//cloth->m_cfg.citerations = 10;