Merge pull request #465 from cameronwhite/conetwist-motor

Use the max motor impulse for cone twist constraints when the motor is enabled.
This commit is contained in:
erwincoumans
2015-09-10 18:08:19 -07:00

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 >= 0.0f) ? m_maxMotorImpulse : SIMD_INFINITY;
srow += info->rowskip;
}
}