fixed remaining sqrtf into btSqrt
authorErwin Coumans <blender@erwincoumans.com>
Thu, 28 Dec 2006 19:02:31 +0000 (19:02 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Thu, 28 Dec 2006 19:02:31 +0000 (19:02 +0000)
extern/bullet2/src/BulletCollision/CollisionDispatch/SphereTriangleDetector.cpp

index 1b25006deec53e7065e4b7347325abc11653cb73..0d76b1013f9d1043aa16318ee4e458c4b7706c02 100644 (file)
@@ -147,7 +147,7 @@ bool SphereTriangleDetector::collide(const btVector3& sphereCenter,btVector3 &po
                btVector3 contactToCentre = c - contactPoint;
                float distanceSqr = contactToCentre.length2();
                if (distanceSqr < (r - MAX_OVERLAP)*(r - MAX_OVERLAP)) {
-                       float distance = sqrtf(distanceSqr);
+                       float distance = btSqrt(distanceSqr);
                        if (1)
                        {
                                resultNormal = contactToCentre;