Added more asserts.

This commit is contained in:
hiker 2014-11-12 07:53:24 +11:00
parent 84affec451
commit cbd43704ac

View File

@ -632,6 +632,10 @@ public:
{
if (m_inverseMass)
{
btAssert(!isnan(impulseMagnitude));
btAssert(!isnan(linearComponent.getX()));
btAssert(!isnan(linearComponent.getY()));
btAssert(!isnan(linearComponent.getZ()));
m_deltaLinearVelocity += linearComponent*impulseMagnitude;
m_deltaAngularVelocity += angularComponent*(impulseMagnitude*m_angularFactor);
}