diff --git a/examples/ExtendedTutorials/SimpleCloth.cpp b/examples/ExtendedTutorials/SimpleCloth.cpp index ec0dd337c..0d62a2dc2 100644 --- a/examples/ExtendedTutorials/SimpleCloth.cpp +++ b/examples/ExtendedTutorials/SimpleCloth.cpp @@ -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;