From 29b251e81bbf2d4c403353d706c0c7ccaaf31379 Mon Sep 17 00:00:00 2001 From: Cameron White Date: Tue, 4 Aug 2015 10:54:34 -0400 Subject: [PATCH] Use the max motor impulse if the motor is enabled. --- src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp b/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp index 4a058c3d3..a7ed69f5c 100644 --- a/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp +++ b/src/BulletDynamics/ConstraintSolver/btConeTwistConstraint.cpp @@ -214,7 +214,7 @@ void btConeTwistConstraint::getInfo2NonVirtual (btConstraintInfo2* info,const bt } // m_swingCorrection is always positive or 0 info->m_lowerLimit[srow] = 0; - info->m_upperLimit[srow] = SIMD_INFINITY; + info->m_upperLimit[srow] = m_bMotorEnabled ? m_maxMotorImpulse : SIMD_INFINITY; srow += info->rowskip; } }