stop within 10 meters of goal

This commit is contained in:
glax 2023-04-01 18:27:52 +02:00
parent 2c5ab070a2
commit 8f9f6f630e

View File

@ -45,7 +45,7 @@ public class Pathfinder
neighbor.currentPathWeight = newPotentialWeight;
neighbor.currentPathLength = closestNodeToGoal.currentPathLength + Utils.DistanceBetween(closestNodeToGoal, neighbor);
if (neighbor.Equals(goalNode) || closestNodeToGoal.directDistanceToGoal < 250)
if (neighbor.Equals(goalNode) || closestNodeToGoal.directDistanceToGoal < 10) //change for faster
stop = true;
else
{