From 724be6f3b23460b229b47a9045c51c20c16ec30b Mon Sep 17 00:00:00 2001 From: wrenge Date: Mon, 11 Nov 2024 11:34:47 +0300 Subject: [PATCH] Backport 20a86b5baeba6558e0f97fb56a82daa6808339af --- src/DotRecast.Detour/DtNavMeshQuery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Detour/DtNavMeshQuery.cs b/src/DotRecast.Detour/DtNavMeshQuery.cs index ee0e699..9defb66 100644 --- a/src/DotRecast.Detour/DtNavMeshQuery.cs +++ b/src/DotRecast.Detour/DtNavMeshQuery.cs @@ -2523,7 +2523,7 @@ namespace DotRecast.Detour // int va = a * 3; // int vb = b * 3; float dx = verts[b].X - verts[a].X; - float dz = verts[b].Z - verts[a].X; + float dz = verts[b].Z - verts[a].Z; hit.hitNormal = RcVec3f.Normalize(new RcVec3f(dz, 0, -dx)); return DtStatus.DT_SUCCESS; }