Use the max motor impulse if the motor is enabled.

This commit is contained in:
Cameron White
2015-08-04 10:54:34 -04:00
parent 5e956154ce
commit 29b251e81b

View File

@@ -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;
}
}