From c4a9567f7d9cbb2fa7b1c5efa48b41ce4ecf19c6 Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 29 Jul 2024 15:17:37 +0200 Subject: [PATCH] Adjust some values --- astar/Astar.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astar/Astar.cs b/astar/Astar.cs index becd61c..a73360f 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -8,9 +8,9 @@ namespace astar { public class Astar(ValueTuple? priorityWeights = null, int? explorationMultiplier = null, float? nonPriorityRoadSpeedPenalty = null) { - private readonly ValueTuple DefaultPriorityWeights = priorityWeights ?? new(0.7f, 1.08f, 0, 0); - private readonly int _explorationMultiplier = explorationMultiplier ?? 150; - private readonly float _nonPriorityRoadSpeedPenalty = nonPriorityRoadSpeedPenalty ?? 0.9f; + private readonly ValueTuple DefaultPriorityWeights = priorityWeights ?? new(.6f, 1, 0, 0); + private readonly int _explorationMultiplier = explorationMultiplier ?? 1500; + private readonly float _nonPriorityRoadSpeedPenalty = nonPriorityRoadSpeedPenalty ?? 0.75f; public Route FindPath(float startLat, float startLon, float endLat, float endLon, float regionSize, bool car = true, PathMeasure pathing = PathMeasure.Distance, string? importFolderPath = null, ILogger? logger = null) {