From 1c637230d59040b026a5d0b7ad25a33eb3f63fc5 Mon Sep 17 00:00:00 2001 From: Amos Date: Wed, 24 Jul 2024 10:25:35 +0200 Subject: [PATCH] Recast: fix comment --- src/thirdparty/recast/Shared/Source/SharedCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thirdparty/recast/Shared/Source/SharedCommon.cpp b/src/thirdparty/recast/Shared/Source/SharedCommon.cpp index 1b11c2b7..d8ae2f38 100644 --- a/src/thirdparty/recast/Shared/Source/SharedCommon.cpp +++ b/src/thirdparty/recast/Shared/Source/SharedCommon.cpp @@ -223,7 +223,7 @@ bool rdClosestHeightPointTriangle(const float* p, const float* a, const float* b v = -v; } - // If point lies inside the triangle, return interpolated ycoord. + // If point lies inside the triangle, return interpolated zcoord. if (u >= 0.0f && v >= 0.0f && (u + v) <= denom) { h = a[2] + (v0[2] * u + v1[2] * v) / denom; return true;