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:
parent
db63de492e
commit
51b2f7a03f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user