From 08f597454a395d4d97b6e7f04bc5c670fb44e419 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sat, 30 Jan 2010 03:59:58 +0000 Subject: [PATCH] minor fix for InternalEdgeDemo --- Demos/InternalEdgeDemo/InternalEdgeDemo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp b/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp index 9a9c58272..88c31c5dd 100644 --- a/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp +++ b/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp @@ -377,6 +377,7 @@ void InternalEdgeDemo::initPhysics() { startTransform.setOrigin(btVector3(-10+i*3,1+i*0.1,-1.3)); btRigidBody* body = localCreateRigidBody(100, startTransform,colShape); + body->setActivationState(DISABLE_DEACTIVATION); body->setLinearVelocity(btVector3(0,0,-1)); } } @@ -471,10 +472,10 @@ void InternalEdgeDemo::clientMoveAndDisplay() - //m_dynamicsWorld->stepSimulation(dt); + m_dynamicsWorld->stepSimulation(dt); ///enable one of the following to debug (render debug lines each frame) //m_dynamicsWorld->stepSimulation(1./800.,0); - m_dynamicsWorld->stepSimulation(1./60.,100,1./800.); + //m_dynamicsWorld->stepSimulation(1./60.,100,1./800.); //m_dynamicsWorld->stepSimulation(1./60.,0); //optional but useful: debug drawing