From d3e6aebf0e145dac2f3cc2f4d175476a61e98189 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 6 Oct 2018 18:36:39 +0200 Subject: [PATCH] Core/Movement: merged a recast navigation update from master --- dep/recastnavigation/Detour/Source/DetourNavMeshQuery.cpp | 2 +- dep/recastnavigation/recastnavigation.diff | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dep/recastnavigation/Detour/Source/DetourNavMeshQuery.cpp b/dep/recastnavigation/Detour/Source/DetourNavMeshQuery.cpp index fcac11f0729..f4c4a029834 100644 --- a/dep/recastnavigation/Detour/Source/DetourNavMeshQuery.cpp +++ b/dep/recastnavigation/Detour/Source/DetourNavMeshQuery.cpp @@ -100,7 +100,7 @@ inline float dtQueryFilter::getCost(const float* pa, const float* pb, } #endif -static const float H_SCALE = 2.0f; // Search heuristic scale. +static const float H_SCALE = 0.99f; // Search heuristic scale. dtNavMeshQuery* dtAllocNavMeshQuery() diff --git a/dep/recastnavigation/recastnavigation.diff b/dep/recastnavigation/recastnavigation.diff index fe0c44a420e..eeb6904a0aa 100644 --- a/dep/recastnavigation/recastnavigation.diff +++ b/dep/recastnavigation/recastnavigation.diff @@ -71,10 +71,6 @@ index 75af102..a263106 100644 @@ -100,7 +100,7 @@ inline float dtQueryFilter::getCost(const float* pa, const float* pb, } #endif - --static const float H_SCALE = 0.999f; // Search heuristic scale. -+static const float H_SCALE = 2.0f; // Search heuristic scale. - dtNavMeshQuery* dtAllocNavMeshQuery() @@ -3623,7 +3623,7 @@ dtStatus dtNavMeshQuery::findDistanceToWall(dtPolyRef startRef, const float* cen