use square epsilon in btVector3::fuzzyZero (length2)

This commit is contained in:
erwin.coumans@gmail.com
2013-10-29 22:53:01 +00:00
parent 1a2c3c0ee9
commit 13936eb9a5
2 changed files with 20 additions and 3 deletions

View File

@@ -688,7 +688,7 @@ public:
SIMD_FORCE_INLINE bool fuzzyZero() const
{
return length2() < SIMD_EPSILON;
return length2() < SIMD_EPSILON*SIMD_EPSILON;
}
SIMD_FORCE_INLINE void serialize(struct btVector3Data& dataOut) const;