Adjust priority in weight calculation with factor.

This commit is contained in:
glax 2023-04-23 14:50:45 +02:00
parent dca4d56866
commit e2332847cd

View File

@ -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);
}