updated rotational-only hinge
This commit is contained in:
@@ -226,6 +226,8 @@ void btHingeConstraint::solveConstraint(btScalar timeStep)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_angularOnly)
|
||||||
|
{
|
||||||
///solve angular part
|
///solve angular part
|
||||||
|
|
||||||
// get axes in world space
|
// get axes in world space
|
||||||
@@ -263,7 +265,7 @@ void btHingeConstraint::solveConstraint(btScalar timeStep)
|
|||||||
|
|
||||||
m_rbA.applyTorqueImpulse(-velrel+angularError);
|
m_rbA.applyTorqueImpulse(-velrel+angularError);
|
||||||
m_rbB.applyTorqueImpulse(velrel-angularError);
|
m_rbB.applyTorqueImpulse(velrel-angularError);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user