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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user