[fix] simulations now correctly count motors on boosters and pods
- thrust now counts motors on InnerTubes AND BodyTubes.
This commit is contained in:
parent
76d4136011
commit
95a927b3b7
@ -129,7 +129,9 @@ public class MotorClusterState {
|
|||||||
if( this.currentState.isThrusting() ) {
|
if( this.currentState.isThrusting() ) {
|
||||||
double motorStartTime = this.getMotorTime( startSimulationTime);
|
double motorStartTime = this.getMotorTime( startSimulationTime);
|
||||||
double motorEndTime = this.getMotorTime( endSimulationTime);
|
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{
|
}else{
|
||||||
return 0.00;
|
return 0.00;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user