Core/Movement: merged a recast navigation update from master

This commit is contained in:
Ovahlord
2018-10-06 18:36:39 +02:00
parent 1b4ddd6949
commit d3e6aebf0e
2 changed files with 1 additions and 5 deletions

View File

@@ -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()

View File

@@ -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