From 144d24009aba3ea944b26dd043f5578c050b3ee3 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Thu, 15 Sep 2011 23:24:42 +0000 Subject: [PATCH] CcdPhysicsDemo: fixed the setCcdMotionThreshold value, it was wrong (way too small --- Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp index 86df8cd33..4bdfc162e 100644 --- a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp +++ b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp @@ -198,7 +198,7 @@ void CcdPhysicsDemo::initPhysics() ///create a few basic rigid bodies btBoxShape* box = new btBoxShape(btVector3(btScalar(110.),btScalar(1.),btScalar(110.))); - box->initializePolyhedralFeatures(); +// box->initializePolyhedralFeatures(); btCollisionShape* groundShape = box; // btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); @@ -288,7 +288,7 @@ void CcdPhysicsDemo::initPhysics() ///when using m_ccdMode if (m_ccdMode==USE_CCD) { - body->setCcdMotionThreshold(1e-7); + body->setCcdMotionThreshold(CUBE_HALF_EXTENTS); body->setCcdSweptSphereRadius(0.9*CUBE_HALF_EXTENTS); } } @@ -358,7 +358,7 @@ void CcdPhysicsDemo::shootBox(const btVector3& destination) ///when using m_ccdMode, disable regular CCD if (m_ccdMode==USE_CCD) { - body->setCcdMotionThreshold(0.0001); + body->setCcdMotionThreshold(CUBE_HALF_EXTENTS); body->setCcdSweptSphereRadius(0.4f); }