[fix] simulations now correctly count motors on boosters and pods

- thrust now counts motors on InnerTubes AND BodyTubes.
This commit is contained in:
Daniel_M_Williams 2017-06-19 05:23:32 -05:00
parent 76d4136011
commit 95a927b3b7

View File

@ -129,7 +129,9 @@ public class MotorClusterState {
if( this.currentState.isThrusting() ) {
double motorStartTime = this.getMotorTime( startSimulationTime);
double motorEndTime = this.getMotorTime( endSimulationTime);
return this.motorCount * motor.getAverageThrust( motorStartTime, motorEndTime );
int instanceCount = this.config.getMount().getLocations().length;
return instanceCount * motor.getAverageThrust( motorStartTime, motorEndTime );
}else{
return 0.00;
}