0 Members and 1 Guest are viewing this topic.
th_main[0] = CreateThruster (_V(0,0.9,-6.25), _V(0,0,1), PB_MAXLANDINGTH, landingtank, PB_ISP); th_main[1] = CreateThruster (_V(0,-0.9,-6.25), _V(0,0,1), PB_MAXLANDINGTH, landingtank, PB_ISP); th_group[0] = th_main[0]; th_group[1] = th_main[1]; CreateThrusterGroup (th_main, 2, THGROUP_MAIN); th_hover[0] = CreateThruster (_V(0,0,0), _V(0,0,-11), 0.0, landingtank, PB_ISP); CreateThrusterGroup (th_hover, 1, THGROUP_HOVER); AddExhaust (th_hover[0], 0, 0, _V(0,0,0), _V(0,0,-11)); //AddExhaust (th_hover, 8, 1, _V(0,-1.5,-1), _V(0,-1,0)); th_retro[0] = CreateThruster (_V(0,0,0), _V(0,0,11), 0.0, landingtank, PB_ISP); CreateThrusterGroup (th_retro, 1, THGROUP_RETRO); AddExhaust (th_retro[0], 0, 0, _V(0,0,0), _V(0,0,11));// RCS engines th_rcs[ 0] = CreateThruster (_V(-2.98, 0.18,-4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Right Up Back th_rcs[ 1] = CreateThruster (_V(-2.98, 0.18, 4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Right Up Front th_rcs[ 2] = CreateThruster (_V( 2.98, 0.18,-4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Left Up Back th_rcs[ 3] = CreateThruster (_V( 2.98, 0.18, 4.94), _V(0,-1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y- Left Up Front th_rcs[ 4] = CreateThruster (_V(-2.98,-0.18,-4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Right Down Back th_rcs[ 5] = CreateThruster (_V(-2.98,-0.18, 4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Right Down Front th_rcs[ 6] = CreateThruster (_V( 2.98,-0.18,-4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Left Down Back th_rcs[ 7] = CreateThruster (_V( 2.98,-0.18, 4.94), _V(0, 1,0), PB_MAXRCSTH, landingtank, PB_ISP); // Y+ Left Down Front th_rcs[ 8] = CreateThruster (_V( 0.00, 2.98, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Center Up Back th_rcs[ 9] = CreateThruster (_V( 0.00,-2.98, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Center Down Back th_rcs[10] = CreateThruster (_V(-0.18, 2.98, 4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Up Front th_rcs[11] = CreateThruster (_V( 0.18, 2.98, 4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Up Front th_rcs[12] = CreateThruster (_V(-0.18,-2.98,-4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Down Back th_rcs[13] = CreateThruster (_V( 0.18,-2.98,-4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Down Back th_rcs[14] = CreateThruster (_V(-2.98, 0.00,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Right Center Back th_rcs[15] = CreateThruster (_V(-2.98, 0.00, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Right Center Back th_rcs[16] = CreateThruster (_V( 2.98, 0.00, 5.22), _V(0,0,-1), PB_MAXRCSTH, landingtank, PB_ISP); // Z- Left Center Back th_rcs[17] = CreateThruster (_V( 2.98, 0.00,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Left Center Back th_rcs[18] = CreateThruster (_V( 0.00,-2.98,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Center Down Back th_rcs[19] = CreateThruster (_V( 0.00, 2.98,-5.22), _V(0,0, 1), PB_MAXRCSTH, landingtank, PB_ISP); // Z+ Center Up Back th_rcs[20] = CreateThruster (_V(-0.18, 2.98,-4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Up Back th_rcs[21] = CreateThruster (_V(-0.18,-2.98, 4.94), _V( 1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X- Right Down Front th_rcs[22] = CreateThruster (_V( 0.18, 2.98,-4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Up Back th_rcs[23] = CreateThruster (_V( 0.18,-2.98, 4.94), _V(-1,0,0), PB_MAXRCSTH, landingtank, PB_ISP); // X+ Left Down Front AddExhaust (th_rcs[ 0], 0.6, 0.1, _V(-2.98, 0.20,-4.94), _V(0,1,0)); AddExhaust (th_rcs[ 1], 0.6, 0.1, _V(-2.98, 0.20, 4.94), _V(0,1,0)); AddExhaust (th_rcs[ 2], 0.6, 0.1, _V( 2.98, 0.20,-4.94), _V(0,1,0)); AddExhaust (th_rcs[ 3], 0.6, 0.1, _V( 2.98, 0.20, 4.94), _V(0,1,0)); AddExhaust (th_rcs[ 4], 0.6, 0.1, _V(-2.98,-0.20,-4.94), _V(0,-1,0)); AddExhaust (th_rcs[ 5], 0.6, 0.1, _V(-2.98,-0.20, 4.94), _V(0,-1,0)); AddExhaust (th_rcs[ 6], 0.6, 0.1, _V( 2.98,-0.20,-4.94), _V(0,-1,0)); AddExhaust (th_rcs[ 7], 0.6, 0.1, _V( 2.98,-0.20, 4.94), _V(0,-1,0)); AddExhaust (th_rcs[ 8], 0.6, 0.1, _V( 0.00, 2.98, 5.22), _V(0,0,1)); AddExhaust (th_rcs[ 9], 0.6, 0.1, _V( 0.00,-2.98, 5.22), _V(0,0,1)); AddExhaust (th_rcs[10], 0.6, 0.1, _V(-0.18, 2.98, 4.94), _V(1,0,0)); AddExhaust (th_rcs[11], 0.6, 0.1, _V( 0.18, 2.98, 4.94), _V(-1,0,0)); AddExhaust (th_rcs[12], 0.6, 0.1, _V(-0.18,-2.98,-4.94), _V(1,0,0)); AddExhaust (th_rcs[13], 0.6, 0.1, _V( 0.18,-2.98,-4.94), _V(-1,0,0)); AddExhaust (th_rcs[14], 0.6, 0.1, _V(-2.98, 0.00,-5.22), _V(0,0,-1)); AddExhaust (th_rcs[15], 0.6, 0.1, _V(-2.98, 0.00, 5.22), _V(0,0,1)); AddExhaust (th_rcs[16], 0.6, 0.1, _V( 2.98, 0.00, 5.22), _V(0,0,1)); AddExhaust (th_rcs[17], 0.6, 0.1, _V( 2.98, 0.00,-5.22), _V(0,0,-1)); AddExhaust (th_rcs[18], 0.6, 0.1, _V( 0.00,-2.98,-5.22), _V(0,0,-1)); AddExhaust (th_rcs[19], 0.6, 0.1, _V( 0.00, 2.98,-5.22), _V(0,0,-1)); AddExhaust (th_rcs[20], 0.6, 0.1, _V(-0.18, 2.98,-4.94), _V(1,0,0)); AddExhaust (th_rcs[21], 0.6, 0.1, _V(-0.18,-2.98, 4.94), _V(1,0,0)); AddExhaust (th_rcs[22], 0.6, 0.1, _V( 0.18, 2.98,-4.94), _V(-1,0,0)); AddExhaust (th_rcs[23], 0.6, 0.1, _V( 0.18,-2.98, 4.94), _V(-1,0,0)); th_group[0] = th_rcs[0]; th_group[1] = th_rcs[2]; th_group[2] = th_rcs[5]; th_group[3] = th_rcs[7]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_PITCHUP); th_group[0] = th_rcs[1]; th_group[1] = th_rcs[3]; th_group[2] = th_rcs[4]; th_group[3] = th_rcs[6]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_PITCHDOWN); th_group[0] = th_rcs[0]; th_group[1] = th_rcs[1]; th_group[2] = th_rcs[6]; th_group[3] = th_rcs[7]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_BANKLEFT); th_group[0] = th_rcs[2]; th_group[1] = th_rcs[3]; th_group[2] = th_rcs[4]; th_group[3] = th_rcs[5]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_BANKRIGHT); th_group[0] = th_rcs[4]; th_group[1] = th_rcs[5]; th_group[2] = th_rcs[6]; th_group[3] = th_rcs[7]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_UP); th_group[0] = th_rcs[0]; th_group[1] = th_rcs[1]; th_group[2] = th_rcs[2]; th_group[3] = th_rcs[3]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_DOWN); th_group[0] = th_rcs[11]; th_group[1] = th_rcs[12]; th_group[2] = th_rcs[23]; th_group[3] = th_rcs[20]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_YAWLEFT); th_group[0] = th_rcs[10]; th_group[1] = th_rcs[13]; th_group[2] = th_rcs[21]; th_group[3] = th_rcs[22]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_YAWRIGHT); th_group[0] = th_rcs[11]; th_group[1] = th_rcs[13]; th_group[2] = th_rcs[22]; th_group[3] = th_rcs[23]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_LEFT); th_group[0] = th_rcs[10]; th_group[1] = th_rcs[12]; th_group[2] = th_rcs[20]; th_group[3] = th_rcs[21]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_RIGHT); th_group[0] = th_rcs[14]; th_group[1] = th_rcs[17]; th_group[2] = th_rcs[18]; th_group[3] = th_rcs[19]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_FORWARD); th_group[0] = th_rcs[8]; th_group[1] = th_rcs[9]; th_group[2] = th_rcs[15]; th_group[3] = th_rcs[16]; CreateThrusterGroup (th_group, 4, THGROUP_ATT_BACK);