Exemple #1
0
DLLCLBK VESSEL *ovcInit (OBJHANDLE hvessel, int flightmodel)
{
	if (!refcount++)
	{
		hCMPEVA = oapiLoadMeshGlobal ("ProjectApollo/saturn1_CMP_EVA");
	}
	return new EVA (hvessel, flightmodel);
}
Exemple #2
0
void LEMLoadMeshes()

{
	hLMPKD = oapiLoadMeshGlobal ("ProjectApollo/LM_NoWheel");
	hLMLanded = oapiLoadMeshGlobal ("ProjectApollo/LM_Landed");
	hLMDescent = oapiLoadMeshGlobal ("ProjectApollo/LM_descent");
	hLMAscent = oapiLoadMeshGlobal ("ProjectApollo/LM_ascent");
	hLMAscent2= oapiLoadMeshGlobal ("ProjectApollo/LM_ascent2");
	hAstro1= oapiLoadMeshGlobal ("ProjectApollo/Sat5AstroS");
	hLemProbes = oapiLoadMeshGlobal ("ProjectApollo/LM_ContactProbes");
}
Exemple #3
0
DLLCLBK VESSEL *ovcInit (OBJHANDLE hvessel, int flightmodel)
{
    if (!refcount++) {
        hSat1stg1 = oapiLoadMeshGlobal ("ProjectApollo/nsat1stg1");
        hSat1stg2 = oapiLoadMeshGlobal ("ProjectApollo/nsat1stg2");
        hSat1stg21 = oapiLoadMeshGlobal ("ProjectApollo/nsat1stg21");
        hSat1stg22 = oapiLoadMeshGlobal ("ProjectApollo/nsat1stg22");
        hSat1stg23 = oapiLoadMeshGlobal ("ProjectApollo/nsat1stg23");
        hSat1stg24 = oapiLoadMeshGlobal ("ProjectApollo/nsat1stg24");
        hSM = oapiLoadMeshGlobal ("ProjectApollo/SM");
    }
    return new VESSEL (hvessel, flightmodel);
}
void InterplanetarySC::clbkSetClassCaps(FILEHANDLE cfg)
{
	MESHHANDLE mesh;
	mesh = oapiLoadMeshGlobal("ThermalFissionCraft"); 
	
	UINT idx;
	idx = AddMesh(mesh);

	SetMeshVisibilityMode(idx,MESHVIS_EXTERNAL);
		
	SetSize(350.0); 
	SetEmptyMass(400000.0);
	createSubSystems();

}
Exemple #5
0
DLLCLBK VESSEL *ovcInit (OBJHANDLE hvessel, int flightmodel)
{
	if (!refcount++) {
		hsat5stg2 = oapiLoadMeshGlobal ("ProjectApollo/sat5stg2");
		hsat5stg3 = oapiLoadMeshGlobal ("ProjectApollo/sat5stg3");
		hsat5stg31 = oapiLoadMeshGlobal ("ProjectApollo/sat5stg31");
		hsat5stg32 = oapiLoadMeshGlobal ("ProjectApollo/sat5stg32");
		hsat5stg33 = oapiLoadMeshGlobal ("ProjectApollo/sat5stg33");
		hsat5stg34 = oapiLoadMeshGlobal ("ProjectApollo/sat5stg34");
		hSM = oapiLoadMeshGlobal ("ProjectApollo/SM");

	}
	return new Sat5Abort2 (hvessel, flightmodel);
}
// Set vessel class parameters
void Dragonfly::SetClassCaps (FILEHANDLE cfg)
{
	
	int i;

	SetSize (4.0);
	SetEmptyMass (EMPTY_MASS);
	SetCrossSections (_V(23.7,22.5,17.3));
	SetPMI (_V(5.4,5.4,2.5));
	SetCameraOffset (_V(0,1.5,0));

	// ************************* propellant specs **********************************

	ph_main = CreatePropellantResource (MAX_MAIN_FUEL);

	// *********************** thruster definitions ********************************

	// thrusters in left pod
	th_lp[0] = CreateThruster (_V(-3.5,0,0), _V(1,0,0), 2*MAX_RCS_THRUST, ph_main, ISP);
	th_lp[1] = CreateThruster (_V(-2.98,0,-0.8), _V(0,0,1), MAX_RCS_THRUST, ph_main, ISP);
	th_lp[2] = CreateThruster (_V(-2.98,0,0.8), _V(0,0,-1), MAX_RCS_THRUST, ph_main, ISP);
	th_lp[3] = CreateThruster (_V(-2.98,-0.8,0), _V(0,1,0), MAX_RCS_THRUST, ph_main, ISP);
	th_lp[4] = CreateThruster (_V(-2.98,0.8,0), _V(0,-1,0), MAX_RCS_THRUST, ph_main, ISP);

	// thrusters in right pod
	th_rp[0] = CreateThruster (_V(3.5,0,0), _V(-1,0,0), 2*MAX_RCS_THRUST, ph_main, ISP);
	th_rp[1] = CreateThruster (_V(2.98,0,-0.8), _V(0,0,1), MAX_RCS_THRUST, ph_main, ISP);
	th_rp[2] = CreateThruster (_V(2.98,0,0.8), _V(0,0,-1), MAX_RCS_THRUST, ph_main, ISP);
	th_rp[3] = CreateThruster (_V(2.98,-0.8,0), _V(0,1,0), MAX_RCS_THRUST, ph_main, ISP);
	th_rp[4] = CreateThruster (_V(2.98,0.8,0), _V(0,-1,0), MAX_RCS_THRUST, ph_main, ISP);

	// thrusters in aft pod (rotational RCS)
	th_ap[0] = CreateThruster (_V(-0.8,0,-11.1), _V(1,0,0), MAX_RCS_THRUST, ph_main, ISP);
	th_ap[1] = CreateThruster (_V(0.8,0,-11.1), _V(-1,0,0), MAX_RCS_THRUST, ph_main, ISP);
	th_ap[2] = CreateThruster (_V(0,-0.8,-11.1), _V(0,1,0), MAX_RCS_THRUST, ph_main, ISP);
	th_ap[3] = CreateThruster (_V(0,0.8,-11.1), _V(0,-1,0), MAX_RCS_THRUST, ph_main, ISP);

	// exhaust definitions for left pod
	AddExhaust (th_lp[0], 1, 0.15, _V(-3.5,0.18,-0.18), _V(-1,0,0));
	AddExhaust (th_lp[0], 1, 0.15, _V(-3.5,-0.18,0.18), _V(-1,0,0));
	for (i = 1; i < 5; i++) AddExhaust (th_lp[i], 1, 0.15);

	// exhaust definitions for right pod
	AddExhaust (th_rp[0], 1, 0.15, _V(3.5,-0.18,-0.18), _V(1,0,0));
	AddExhaust (th_rp[0], 1, 0.15, _V(3.5,0.18,0.18), _V(1,0,0));
	for (i = 1; i < 5; i++) AddExhaust (th_rp[i], 1, 0.15);

	// exhaust definitions for aft pod
	for (i = 0; i < 4; i++) AddExhaust (th_ap[i], 1, 0.15);
	//thruster definitions. Both manual and "automatic" RCS
	SetManualRCS();
	SetNormalRCS();//
	
	// *************************** docking port ************************************

	SetDockParams (_V(0,0,3.2), _V(0,0,1), _V(0,1,0));
    
	// ******************************** mesh ***************************************

	AddMesh (oapiLoadMeshGlobal ("Dragonfly"));
};
// --------------------------------------------------------------
// One-time global setup across all instances
// --------------------------------------------------------------
void SolarSail::GlobalSetup()
{
	SolarSail::hMeshTpl = oapiLoadMeshGlobal ("SolarSail");
	oapiSetMeshProperty (SolarSail::hMeshTpl, MESHPROPERTY_MODULATEMATALPHA, 1);
	SetupElasticity (hMeshTpl);
}
Exemple #8
0
// Constructor
Atlantis_SRB::Atlantis_SRB (OBJHANDLE hObj)
: VESSEL2(hObj)
{
	// preload mesh
	hSRBMesh = oapiLoadMeshGlobal ("Atlantis_srb");
}