run the PhysicsServerExample 'stepSimulation' smoother

fix a warning in ThirdParty/stb_image
fix an single/double precision issue in btPolyhedralContactClipping.cpp
This commit is contained in:
=
2015-09-08 13:39:09 -07:00
parent 2909b5fae3
commit 5be9119455
3 changed files with 9 additions and 5 deletions

View File

@@ -116,7 +116,7 @@ static int gActualSATPairTests=0;
inline bool IsAlmostZero(const btVector3& v)
{
if(fabsf(v.x())>1e-6 || fabsf(v.y())>1e-6 || fabsf(v.z())>1e-6) return false;
if(btFabs(v.x())>1e-6 || btFabs(v.y())>1e-6 || btFabs(v.z())>1e-6) return false;
return true;
}