Bug fix : Instability of spring motor for the 6DOF constraint
This commit is contained in:
1 parent
3985e2e328
commit
dfa1f033da
1 file changed
+1
-2
@@ -746,10 +746,9 @@ int btGeneric6DofConstraint::get_limit_motor_info2(
|
|||||||
if (powered)
|
if (powered)
|
||||||
{
|
{
|
||||||
info->cfm[srow] = 0.0f;
|
info->cfm[srow] = 0.0f;
|
||||||
// if(!limit)
|
if(!limit)
|
||||||
{
|
{
|
||||||
btScalar tag_vel = rotational ? limot->m_targetVelocity : -limot->m_targetVelocity;
|
btScalar tag_vel = rotational ? limot->m_targetVelocity : -limot->m_targetVelocity;
|
||||||
|
|
||||||
btScalar mot_fact = getMotorFactor( limot->m_currentPosition,
|
btScalar mot_fact = getMotorFactor( limot->m_currentPosition,
|
||||||
limot->m_loLimit,
|
limot->m_loLimit,
|
||||||
limot->m_hiLimit,
|
limot->m_hiLimit,
|
||||||
|
|||||||
Reference in new issue
Block a user