Added more asserts.
This commit is contained in:
parent
84affec451
commit
cbd43704ac
@ -632,6 +632,10 @@ public:
|
|||||||
{
|
{
|
||||||
if (m_inverseMass)
|
if (m_inverseMass)
|
||||||
{
|
{
|
||||||
|
btAssert(!isnan(impulseMagnitude));
|
||||||
|
btAssert(!isnan(linearComponent.getX()));
|
||||||
|
btAssert(!isnan(linearComponent.getY()));
|
||||||
|
btAssert(!isnan(linearComponent.getZ()));
|
||||||
m_deltaLinearVelocity += linearComponent*impulseMagnitude;
|
m_deltaLinearVelocity += linearComponent*impulseMagnitude;
|
||||||
m_deltaAngularVelocity += angularComponent*(impulseMagnitude*m_angularFactor);
|
m_deltaAngularVelocity += angularComponent*(impulseMagnitude*m_angularFactor);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user