From ca32c59a58d37c1822e185a2d5f3d0d3e8943593 Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Thu, 3 May 2018 18:22:48 +0200 Subject: NvCloth 1.1.4 Release. (24070740) --- NvCloth/extensions/src/ClothGeodesicTetherCooker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'NvCloth/extensions/src/ClothGeodesicTetherCooker.cpp') diff --git a/NvCloth/extensions/src/ClothGeodesicTetherCooker.cpp b/NvCloth/extensions/src/ClothGeodesicTetherCooker.cpp index 0a27337..65e2a3f 100644 --- a/NvCloth/extensions/src/ClothGeodesicTetherCooker.cpp +++ b/NvCloth/extensions/src/ClothGeodesicTetherCooker.cpp @@ -285,7 +285,7 @@ namespace // point on ray R = o + t * d // for this two points to intersect, we have // |AB -d| | s t | = o - A - const float eps = 1e-4; + const float eps = 1e-4f; PxVec3 OA = O - A; PxVec3 AB = B - A; @@ -765,7 +765,7 @@ int ClothGeodesicTetherCooker::computeVertexIntersection(PxU32 parent, PxU32 src continue; // t should be positive, otherwise we just hit the triangle in opposite direction, so ignore - const float eps = 1e-5; + const float eps = 1e-5f; if (t > -eps) { PxVec3 ip; // intersection point @@ -884,7 +884,7 @@ int ClothGeodesicTetherCooker::computeEdgeIntersection(PxU32 parent, PxU32 edge, g = (g - g.dot(n) * n).getNormalized(); float s = 0.0f, t = 0.0f; - const float eps = 1e-5; + const float eps = 1e-5f; PxVec3 ip; // intersect against edge form p2 to p0 -- cgit v1.2.3