From 995d1b86bea24880dd7078baf8bf8a8a8423e024 Mon Sep 17 00:00:00 2001 From: jcw780 <30562395+jcw780@users.noreply.github.com> Date: Thu, 24 Sep 2020 14:57:32 -0400 Subject: [PATCH] fix: vertical overflow switched from idealDistance to maxDist --- src/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 125e4b0..5669952 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -273,7 +273,7 @@ class App extends React.Component<{},{}> { Math.sin(this.instance.getImpactPoint(i, impactIndices.impactAHR, j) * - 1); if(dist < delimSplit){ maxVertical *= (zdSlope * dist + zdConst); - }else if(dist < 30 * idealDistance){ + }else if(dist < maxDist){ maxVertical *= (dmSlope * dist + dmConst); }else{ maxVertical *= (radiusOnMax);