Added asserts to detect NANs in applyTorque.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2012-01-10 22:50:19 +00:00
parent a25fb4a71c
commit dde12fb6a7

View File

@@ -309,6 +309,9 @@ public:
void applyTorque(const btVector3& torque)
{
btAssert(!isnan(torque.getX()));
btAssert(!isnan(torque.getY()));
btAssert(!isnan(torque.getZ()));
m_totalTorque += torque*m_angularFactor;
}