From 5ec7862b71286d426135cf98398c16fbf3ff6c5f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:06:34 +0200 Subject: [PATCH] Recast: more missed XZY -> XYZ changes --- src/naveditor/NavMeshPruneTool.cpp | 2 +- src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/naveditor/NavMeshPruneTool.cpp b/src/naveditor/NavMeshPruneTool.cpp index e68645e2..ebb49621 100644 --- a/src/naveditor/NavMeshPruneTool.cpp +++ b/src/naveditor/NavMeshPruneTool.cpp @@ -245,7 +245,7 @@ void NavMeshPruneTool::handleClick(const float* s, const float* p, bool shift) m_flags->init(nav); } - const float halfExtents[3] = { 2, 4, 2 }; + const float halfExtents[3] = { 2, 2, 4 }; dtQueryFilter filter; dtPolyRef ref = 0; query->findNearestPoly(p, halfExtents, &filter, &ref, 0); diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp index 1eec5f7b..9aeb3de1 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp @@ -632,7 +632,7 @@ void dtNavMesh::baseOffMeshLinks(dtMeshTile* tile) dtOffMeshConnection* con = &tile->offMeshCons[i]; dtPoly* poly = &tile->polys[con->poly]; - const float halfExtents[3] = { con->rad, tile->header->walkableClimb, con->rad }; + const float halfExtents[3] = { con->rad, con->rad, tile->header->walkableClimb }; // Find polygon to connect to. const float* p = &con->pos[0]; // First vertex