I am trying to make a smoke stack vessel. Basically a tower mesh with a flame coming out like the the one here in the Delta4 add on.
https://dl.dropboxusercontent.com/u/71242599/smokestack2.jpg
But this is what I get. When I place the tower no problem. When I fire the thruster. The tower leans down.
https://dl.dropboxusercontent.com/u/71242599/newsmokestack.jpg
https://dl.dropboxusercontent.com/u/71242599/smokestack2.jpg
But this is what I get. When I place the tower no problem. When I fire the thruster. The tower leans down.
https://dl.dropboxusercontent.com/u/71242599/newsmokestack.jpg
Code:
SURFHANDLE tex_main = oapiRegisterParticleTexture ("Contrail2-mod");
PROPELLANT_HANDLE TANK;
TANK = CreatePropellantResource (FUELMASS);
th_main = CreateThruster (_V(0,0,0), _V(0,-1,0), MAXMAINTH, TANK, ISP);
CreateThrusterGroup (&th_main, 1, THGROUP_MAIN);
AddExhaust (th_main,.5,.1,_V(0,24,0),_V(0,1,0));
SURFHANDLE fire_tex = oapiRegisterParticleTexture ("Contrail2-mod");
PARTICLESTREAMSPEC fire1 =
{
0, 5, 20, 20, 0.01, 8, -2, -1.0, PARTICLESTREAMSPEC::EMISSIVE,
PARTICLESTREAMSPEC::LVL_PSQRT, 0, 2,
PARTICLESTREAMSPEC::ATM_PLOG,1e-4, 1,fire_tex
};
PARTICLESTREAMSPEC smoke = {
0, 2, 10, 150, 0.1, 0.2, 16, 1.0, PARTICLESTREAMSPEC::DIFFUSE,
PARTICLESTREAMSPEC::LVL_SQRT, 0,1,
PARTICLESTREAMSPEC::ATM_PLOG, -.5, .1
};
PARTICLESTREAMSPEC fire2 = {
0, 20, 6, 30, 0.03, 1.5, 0.1, -1.0, PARTICLESTREAMSPEC::EMISSIVE,
PARTICLESTREAMSPEC::LVL_PSQRT, 0, 2,
PARTICLESTREAMSPEC::ATM_PLOG,1e-4, 1,fire_tex
};
// fire.tex = oapiRegisterParticleTexture ("Contrail2-mod");
AddExhaustStream (th_main, _V(0,24,0),&fire1);
AddExhaustStream (th_main, _V(0,24,0),&fire2);