Added assert to help catching a bullet bug.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6687 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -213,6 +213,12 @@ public:
|
||||
|
||||
void setWorldTransform(const btTransform& worldTrans)
|
||||
{
|
||||
btAssert(!isnan(worldTrans.getOrigin().getX()));
|
||||
btAssert(!isnan(worldTrans.getOrigin().getY()));
|
||||
btAssert(!isnan(worldTrans.getOrigin().getZ()));
|
||||
btAssert(!isinf(worldTrans.getOrigin().getX()));
|
||||
btAssert(!isinf(worldTrans.getOrigin().getY()));
|
||||
btAssert(!isinf(worldTrans.getOrigin().getZ()));
|
||||
m_worldTransform = worldTrans;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user