Hello David,
I use a function of the SDK: SetPropellantMass
the routine look as follow and as to be called within ovctimestep:
if(GetPropellantMass(ph_main)<MAX_MAIN_FUEL)
{
// fuel the tank adding a small amount at each frame
SetPropellantMass (ph_main,GetPropellantMass(ph_main)+(float)Data.SimStep*60);
// Ensure that we don't fuel too much
if(GetPropellantMass(ph_main)>MAX_MAIN_FUEL)
{
SetPropellantMass (ph_main,MAX_MAIN_FUEL);
// add fuel completion flag here
}
}
the blank space are gone but once you indent it correctly
it will look clear.
Dan