From dfa1f033da3520892557c16543ac30b905052b87 Mon Sep 17 00:00:00 2001 From: rponom Date: Wed, 27 May 2009 20:20:38 +0000 Subject: [PATCH] Bug fix : Instability of spring motor for the 6DOF constraint --- .../ConstraintSolver/btGeneric6DofConstraint.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp b/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp index da1a2b780..2d95321dc 100644 --- a/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp +++ b/src/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp @@ -746,10 +746,9 @@ int btGeneric6DofConstraint::get_limit_motor_info2( if (powered) { info->cfm[srow] = 0.0f; -// if(!limit) + if(!limit) { btScalar tag_vel = rotational ? limot->m_targetVelocity : -limot->m_targetVelocity; - btScalar mot_fact = getMotorFactor( limot->m_currentPosition, limot->m_loLimit, limot->m_hiLimit,