From 35e655cd5ac4c4dcaaf10af7636926770af353d6 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Wed, 16 Apr 2008 18:47:36 +0000 Subject: [PATCH] BGE: Fix restitution: object will now bounce according to material restitution setting --- source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp index 5771e7f1dc7..c9d346e316d 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp @@ -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; } }