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