cp.weight doesn't have any obvious relationahip to mass. We may want to revisit the idea of having a separate minimum cp.weight, but for the moment just making it be MathUtil.EPSILON removes the confusion and doesn't change behavior (MassCalculator.MIN_MASS is set to MathUtil.EPSILON in that class)

This commit is contained in:
JoePfeiffer 2020-05-05 10:37:22 -06:00
parent db63de492e
commit 51b2f7a03f

View File

@ -592,7 +592,7 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
cg = MassCalculator.calculateLaunch( curConfig).getCM();
if (cp.weight > MassCalculator.MIN_MASS){
if (cp.weight > MathUtil.EPSILON){
cpx = cp.x;
}else{
cpx = Double.NaN;