mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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).
This commit is contained in:
parent
4ada4cef72
commit
0f8f1a4860
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user