mirror of
https://github.com/excalidraw/excalidraw.git
synced 2024-11-02 03:25:53 +01:00
Testing anti-flicker weighting
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
ca5c776880
commit
3ce7b5d131
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user