- stop threads when exiting demo that uses multi threading

- improved friction model for parallel solver (align the friction direction with projected velocity, unless the projection is close to zero (only then use 2 arbitrary axis orthogonal to contact normal)
This commit is contained in:
ejcoumans
2007-11-11 22:48:08 +00:00
parent 232f41353f
commit 56c69bc42e
6 changed files with 76 additions and 19 deletions

View File

@@ -25,6 +25,7 @@ class btCollisionDispatcher;
class btConstraintSolver;
struct btCollisionAlgorithmCreateFunc;
class btDefaultCollisionConfiguration;
class Win32ThreadSupport;
///CcdPhysicsDemo shows basic stacking using Bullet physics, and allows toggle of Ccd (using key '1')
class CcdPhysicsDemo : public DemoApplication
@@ -37,6 +38,10 @@ class CcdPhysicsDemo : public DemoApplication
btCollisionDispatcher* m_dispatcher;
Win32ThreadSupport* m_threadSupportCollision;
Win32ThreadSupport* m_threadSupportSolver;
btConstraintSolver* m_solver;
btCollisionAlgorithmCreateFunc* m_boxBoxCF;