Zane
New member
For some reason, the SetPropellantMass method is not setting the amount of fuel properly.
See, I've got this code:
This is right in the clbkSetClassCaps callback of my dll, which is the separated first stage of a rocket. Its supposed to make 4 stage separation motors that fire to bring the first stage of the rocket away from the second.
However, the engines never fire because the fuel tank doesn't get filled. What am I doing wrong here?
See, I've got this code:
Code:
this->SeparationFuel = this->CreatePropellantResource(100);
this->SeparationThrust[0] = this->CreateThruster(
_V(0,22,35), _V(0,0,-1), 20000, this->SeparationFuel, 200);
this->SeparationThrust[1] = this->CreateThruster(
_V(0,-22,35), _V(0,0,-1), 20000, this->SeparationFuel, 200);
this->SeparationThrust[2] = this->CreateThruster(
_V(22,0,35), _V(0,0,-1), 20000, this->SeparationFuel, 200);
this->SeparationThrust[3] = this->CreateThruster(
_V(-22,0,35), _V(0,0,-1), 20000, this->SeparationFuel, 200);
this->CreateThrusterGroup(this->SeparationThrust, 4, THGROUP_MAIN);
this->AddExhaust(SeparationThrust[0], 16, 2);
this->AddExhaust(SeparationThrust[1], 16, 2);
this->AddExhaust(SeparationThrust[2], 16, 2);
this->AddExhaust(SeparationThrust[3], 16, 2);
this->SetPropellantMass(this->SeparationFuel, 100);
this->SetThrusterGroupLevel(THGROUP_MAIN, 1.00);
This is right in the clbkSetClassCaps callback of my dll, which is the separated first stage of a rocket. Its supposed to make 4 stage separation motors that fire to bring the first stage of the rocket away from the second.
However, the engines never fire because the fuel tank doesn't get filled. What am I doing wrong here?