Hello,
I'm searching a way to simulate the fuel consumption of a thruster.
I have a tank (oxygen) that I want to be depleted in function of time. I can't use thrusters because it causes the terrible "bouncing bug" once landed, even if the two thrusters are exact opposites. So I'm searching a way to simulate fuel (oxygen) consumption, but without using thrusters...
I tried this, but it seems frame-rate-dependant (in clbkPostStep) :
Any help welcome :tiphat:
I'm searching a way to simulate the fuel consumption of a thruster.
I have a tank (oxygen) that I want to be depleted in function of time. I can't use thrusters because it causes the terrible "bouncing bug" once landed, even if the two thrusters are exact opposites. So I'm searching a way to simulate fuel (oxygen) consumption, but without using thrusters...
I tried this, but it seems frame-rate-dependant (in clbkPostStep) :
double CrewN = Crew.GetCrewTotalNumber();
double O2consumption = CrewN;
double O2lvl = GetPropellantMass(LOX);
if (GetPropellantMass(LOX) > 0) {
O2lvl = O2lvl-(O2consumption*(simt*0.001));
}
Any help welcome :tiphat: