From c4f7b5eddff75b3b6ef0ce86616a2358c928bde8 Mon Sep 17 00:00:00 2001 From: alantrrs Date: Wed, 21 Mar 2018 18:52:59 -0700 Subject: [PATCH] Fix simple cloth example. Closes #1606 --- examples/ExtendedTutorials/SimpleCloth.cpp | 1 + 1 file changed, 1 insertion(+) 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;