BGE: Fix restitution: object will now bounce according to material restitution setting
authorBenoit Bolsee <benoit.bolsee@online.be>
Wed, 16 Apr 2008 18:47:36 +0000 (18:47 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Wed, 16 Apr 2008 18:47:36 +0000 (18:47 +0000)
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp

index 5771e7f1dc7aebd6b14e770e22384e52ee7a3639..c9d346e316d174e802131344c617f7df7c5bb45a 100644 (file)
@@ -581,7 +581,7 @@ void                CcdPhysicsEnvironment::setSolverType(int solverType)
                        {
 
                                m_solver = new btSequentialImpulseConstraintSolver();
-
+                               ((btSequentialImpulseConstraintSolver*)m_solver)->setSolverMode(btSequentialImpulseConstraintSolver::SOLVER_USE_WARMSTARTING | btSequentialImpulseConstraintSolver::SOLVER_RANDMIZE_ORDER);
                                break;
                        }
                }