From 628a4471ea9c2659a68eff1db50f5aa0e9d037aa Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 28 Jul 2024 08:58:10 +0200 Subject: [PATCH] Recast: fix incorrect assignment of half extents (XZY -> XYZ) --- src/thirdparty/recast/DetourCrowd/Source/DetourCrowd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thirdparty/recast/DetourCrowd/Source/DetourCrowd.cpp b/src/thirdparty/recast/DetourCrowd/Source/DetourCrowd.cpp index c679804c..28f6a2b5 100644 --- a/src/thirdparty/recast/DetourCrowd/Source/DetourCrowd.cpp +++ b/src/thirdparty/recast/DetourCrowd/Source/DetourCrowd.cpp @@ -149,7 +149,7 @@ bool dtCrowd::init(const int maxAgents, const float maxAgentRadius, dtNavMesh* n m_maxAgentRadius = maxAgentRadius; // Larger than agent radius because it is also used for agent recovery. - rdVset(m_agentPlacementHalfExtents, m_maxAgentRadius*2.0f, m_maxAgentRadius*1.5f, m_maxAgentRadius*2.0f); + rdVset(m_agentPlacementHalfExtents, m_maxAgentRadius*2.0f, m_maxAgentRadius*2.0f, m_maxAgentRadius*1.5f); m_grid = dtAllocProximityGrid(); if (!m_grid)