Fix simple cloth example. Closes #1606

This commit is contained in:
alantrrs
2018-03-21 18:52:59 -07:00
parent 680ce39e96
commit c4f7b5eddf

View File

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