updated rotational-only hinge

This commit is contained in:
ejcoumans
2006-11-21 01:38:18 +00:00
parent 4a23f4f438
commit c801569644

View File

@@ -226,6 +226,8 @@ void btHingeConstraint::solveConstraint(btScalar timeStep)
}
}
if (!m_angularOnly)
{
///solve angular part
// get axes in world space
@@ -263,7 +265,7 @@ void btHingeConstraint::solveConstraint(btScalar timeStep)
m_rbA.applyTorqueImpulse(-velrel+angularError);
m_rbB.applyTorqueImpulse(velrel-angularError);
}
#endif
}