Testing anti-flicker weighting

Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
Mark Tolmacs 2024-07-05 21:42:02 +02:00
parent ca5c776880
commit 3ce7b5d131
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ const astar = (
const gScore =
current.g +
m_dist(neighbor.pos, current.pos) +
(directionChange ? Math.pow(bendMultiplier, 2) : 0);
(directionChange ? Math.pow(bendMultiplier, 3) : 0);
const beenVisited = neighbor.visited;