From 0f8f1a48605e733b932b41d7057096b7bed0ff6c Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 28 Jul 2022 12:34:20 +0200 Subject: [PATCH] Increase smooth path step size and slop This increases the size of the path lines (this had to be increased due to the scale of the maps in this engine, recast was originally not scaled for it). --- r5dev/naveditor/NavMeshTesterTool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/r5dev/naveditor/NavMeshTesterTool.cpp b/r5dev/naveditor/NavMeshTesterTool.cpp index 6b631b88..59d3ca53 100644 --- a/r5dev/naveditor/NavMeshTesterTool.cpp +++ b/r5dev/naveditor/NavMeshTesterTool.cpp @@ -477,8 +477,8 @@ void NavMeshTesterTool::handleToggle() if (!m_sposSet || !m_eposSet || !m_startRef || !m_endRef) return; - static const float STEP_SIZE = 0.5f; - static const float SLOP = 0.01f; + static const float STEP_SIZE = 10.0f; + static const float SLOP = 2.0f; if (m_pathIterNum == 0) { @@ -704,8 +704,8 @@ void NavMeshTesterTool::recalc() m_navQuery->closestPointOnPoly(m_startRef, m_spos, iterPos, 0); m_navQuery->closestPointOnPoly(polys[npolys-1], m_epos, targetPos, 0); - static const float STEP_SIZE = 2.0f; - static const float SLOP = 0.1f; + static const float STEP_SIZE = 40.0f; + static const float SLOP = 2.0f; m_nsmoothPath = 0;