Adjust priority in weight calculation with factor.
This commit is contained in:
parent
dca4d56866
commit
e2332847cd
@ -130,7 +130,7 @@ public class Pathfinder
|
||||
else
|
||||
angle = nodeAngle / 180;
|
||||
}
|
||||
double prio = regionManager.GetPriorityForVehicle(_speedType,edge, currentNode);
|
||||
double prio = regionManager.GetPriorityForVehicle(_speedType,edge, currentNode) * roadPriorityFactor;
|
||||
|
||||
return distance / (speed * angle + prio + 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user