updated rotational-only hinge
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user