Minor fix in friction: calculate second friction direction based on un-scaling first friction direction (issue if it was scaled to zero)

Force activation state of static objects to be ISLAND_SLEEPING, once they are added to the world
Add backwards compatibility option btDiscreteDynamicsWorld::setSynchronizeAllMotionStates, just in case only updating active objects broke someones code
Don't disable 3D box-box in box2ddemo
This commit is contained in:
erwin.coumans
2009-06-11 12:22:41 +00:00
parent 3e5fc86a6c
commit 6c80353556
4 changed files with 41 additions and 59 deletions

View File

@@ -97,7 +97,7 @@ void Box2dDemo::initPhysics()
///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded)
m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration);
m_dispatcher->registerCollisionCreateFunc(BOX_SHAPE_PROXYTYPE,BOX_SHAPE_PROXYTYPE,new btEmptyAlgorithm::CreateFunc);
m_dispatcher->registerCollisionCreateFunc(CUSTOM_CONVEX_SHAPE_TYPE,CUSTOM_CONVEX_SHAPE_TYPE,new btBox2dBox2dCollisionAlgorithm::CreateFunc);
m_broadphase = new btDbvtBroadphase();