#define STRICT
#define ORBITER_MODULE
#define ENG 1
#define START 2
#include "orbitersdk.h"
#include "SLSCRAWLER.h"
#include "SLSCRAWLERMESH.h"
static const int ntdvtx = 3;
static TOUCHDOWNVTX tdvtx[ntdvtx] = {
{ _V(0, .001, 1.5), 1e6, 1e5, 3.2, 0.8 },
{ _V(-2, .001, -2.6), 1e6, 1e5, 3.2, 0.4 },
{ _V(2, .001, -2.6), 1e6, 1e5, 3.2, 0.4 }//,
};
//LAND_PT1=(0,-2.866,17)
//LAND_PT2 = (-3.96, -2.866, -4.3)
//LAND_PT3 = (3.96, -2.866, -4.3)
VISHANDLE MainExternalMeshVisual = 0;
SLSCRAWLER::SLSCRAWLER(OBJHANDLE hObj, int fmodel) : VESSEL2(hObj, fmodel) {
DefineAnimations();
}
void SLSCRAWLER::clbkSetClassCaps(FILEHANDLE cfg) {
// physical specs
SetSize(6.08);
SetEmptyMass(MASS);
SetCW(0.9, 0.9, 2, 1.4);
SetWingAspect(0.1);
SetWingEffectiveness(0.1);
SetCrossSections(_V(232.84,1220.32,166.36));
SetRotDrag(_V(0.1, 0.1, 0.1));
if (GetFlightModel() >= 1) {
SetPitchMomentScale(1e-4);
SetBankMomentScale(1e-4);
}
SetPMI(_V(163.54, 208.04, 76.03));
SetTrimScale(0.05);
SetCameraOffset(_V(0, .7, 3.121));
SetTouchdownPoints(tdvtx, ntdvtx);
// visual specs
iMeshMain = AddMesh("SLSCRAWLER");
SetMeshVisibilityMode(iMeshMain, MESHVIS_ALWAYS);
PROPELLANT_HANDLE TANK = CreatePropellantResource(FUELMASS);
th_hover[0] = CreateThruster(_V(0, 0, 0), _V(0, 1, 0), MAXMAINTH, TANK, ISP);
thg_hover = CreateThrusterGroup(th_hover, 1, THGROUP_HOVER);
}