From e18581b9ac1183f2bb3662ece0dd0d7b36ec377f Mon Sep 17 00:00:00 2001 From: DoomKitty87 Date: Sun, 27 Aug 2023 12:26:38 -0700 Subject: [PATCH] fixed angle weight --- web-app/seafoam/src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-app/seafoam/src/index.html b/web-app/seafoam/src/index.html index 791e750..6ff2695 100644 --- a/web-app/seafoam/src/index.html +++ b/web-app/seafoam/src/index.html @@ -559,7 +559,7 @@ var angleWeight = 1; const angleDiff = 180 / Math.PI * Math.abs(Math.atan2(path[path.length - 6] - path[path.length - 3], path[path.length - 4] - path[path.length - 1]) - Math.atan2(padCoords[j * 3] - path[path.length - 3], padCoords[j * 3 + 2] - path[path.length - 1])); //Include settable angle weighting later - if (angleEnable) { + if (angleEnable && path.length > 5) { if (gemDensity > 50) { angleWeight = Math.abs(Math.min(angleDiff, 360 - angleDiff) - angle3) / 100 + 1 } else {