Skip to content

Commit

Permalink
fix: vertical overflow switched from idealDistance to maxDist
Browse files Browse the repository at this point in the history
  • Loading branch information
jcw780 committed Sep 24, 2020
1 parent d749bb1 commit 995d1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 995d1b8

Please sign in to comment.