stop within 10 meters of goal
This commit is contained in:
parent
2c5ab070a2
commit
8f9f6f630e
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user