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:
@@ -214,7 +214,7 @@ void btConeTwistConstraint::getInfo2NonVirtual (btConstraintInfo2* info,const bt
|
|||||||
}
|
}
|
||||||
// m_swingCorrection is always positive or 0
|
// m_swingCorrection is always positive or 0
|
||||||
info->m_lowerLimit[srow] = 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;
|
srow += info->rowskip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user