Change distance to within 100.0 dist instead of within 1.0 dist for checking stuck code. The actual instances where you're within 100.0 with a partial path and legit not stuck is going to be uncommon enough to put up with the visual oddities

This commit is contained in:
KimLS 2018-05-02 18:23:28 -07:00
parent a53f65d86b
commit dde3f603be

View File

@ -84,7 +84,7 @@ IPathfinder::IPath PathfinderNavmesh::FindRoute(const glm::vec3 &start, const gl
partial = true;
auto dist = DistanceSquared(epos, current_location);
if (dist < 10.0f) {
if (dist < 10000.0f) {
stuck = true;
}
}