From bdf78e0735fc085777ebb3faf569578a1c7d1c34 Mon Sep 17 00:00:00 2001 From: rponom Date: Wed, 14 Jan 2009 02:40:09 +0000 Subject: [PATCH] Motor parameter m_fMuscleStrength for the Dynamic Control Demo has been changed to allow demo work with new constraint solver --- Demos/DynamicControlDemo/MotorDemo.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Demos/DynamicControlDemo/MotorDemo.cpp b/Demos/DynamicControlDemo/MotorDemo.cpp index 0f6b3dbe0..d07bb5591 100644 --- a/Demos/DynamicControlDemo/MotorDemo.cpp +++ b/Demos/DynamicControlDemo/MotorDemo.cpp @@ -256,7 +256,12 @@ void MotorDemo::initPhysics() m_Time = 0; m_fCyclePeriod = 2000.f; // in milliseconds - m_fMuscleStrength = 0.05f; + +// m_fMuscleStrength = 0.05f; + // new SIMD solver for joints clips accumulated impulse, so the new limits for the motor + // should be (numberOfsolverIterations * oldLimits) + // currently solver uses 10 iterations, so: + m_fMuscleStrength = 0.5f; setCameraDistance(btScalar(5.));