ph_main = CreatePropellantResource(FUELMASS);
th_hover[0] = CreateThruster(_V(6, 0, 10), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[1] = CreateThruster(_V(-6, 0, 10), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[2] = CreateThruster(_V(6, 0, -10), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
th_hover[3] = CreateThruster(_V(-6, 0, -10), _V(0, 1, 0), 10000/4, ph_main, RCS_ISP);
AddExhaust(th_hover[0], 1, 0.3, _V(0, -2.8, 0), _V(0, -1, 0));
thg_hover = CreateThrusterGroup(th_hover,4, THGROUP_HOVER);
th_rcs[0] = CreateThruster(_V(6, 0, 10), _V(0, -1, 0), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[0], 1, .1, _V(2.063, 1.0571, 8.3072), _V(0, 1, 0));
// AddExhaust(th_rcs[0], 1, 0.1, _V(1.2234, 1.1706, .782), _V(0, 1, 0));
// Delantero derecho inferior
th_rcs[1] = CreateThruster(_V(6, 0, 10), _V(0, 1, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[1], .5, 0.1, _V(1.261, -2.6, 1.175), _V(0, -1, 0));
AddExhaust(th_rcs[1], .5, 0.1, _V(1.158, -2.6, 1.277), _V(0, -1, 0));// Delantero derecho proa
// Delantero derecho proa
th_rcs[2] = CreateThruster(_V(6, 0, 10), _V(0, 0, -1), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[2], .5, .1, _V(1.167, -1.86, 1.325), _V(0, 0, 1));
//AddExhaust(th_rcs[2], .5, .01, _V(1.1555, 1.2106, .766), _V(-0.464, 0, .8858));
//AddExhaust(th_rcs[2], .5, 0.01, _V(1.148, 1.2179, .782), _V(0, 0, 1));
// Delantero derecho popa
th_rcs[3] = CreateThruster(_V(6, 0, 10), _V(0, 0, 1), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[3], 1, .10, _V(0.922, .046, -7.5872), _V(0, 0, -1));
// Delantero derecho exterior
th_rcs[4] = CreateThruster(_V(6, 0, 10), _V(-1, 0, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[4], .5, 0.1, _V(1.324, -1.86, 1.164), _V(1, 0, 0));
// Grupo delantero izquierdo
// Delantero izquierdo superior
th_rcs[5] = CreateThruster(_V(-6, 0, 10), _V(0, -1, 0), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[5], 1, .10, _V(-2.063, 1.0571, 8.3072), _V(0, 1, 0));
//AddExhaust(th_rcs[5], 1, 0.1, _V(-1.2234, 1.1706, .782), _V(0, 1, 0));
// Delantero izquierdo inferior
th_rcs[6] = CreateThruster(_V(-6, 0, 10), _V(0, 1, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[6], .5, 0.1, _V(-1.261, -2.6, 1.175), _V(0, -1, 0));
AddExhaust(th_rcs[6], .5, 0.1, _V(-1.158, -2.6, 1.277), _V(0, -1, 0));// Delantero derecho proa
// Delantero izquierdo proa
th_rcs[7] = CreateThruster(_V(-6, 0, 10), _V(0, 0, -1), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[7], .51, .1, _V(-1.167, -1.86, 1.325), _V(0, 0, 1));
//AddExhaust(th_rcs[7], .5, 0.01, _V(-1.148, 1.2179, .782), _V(0, 0, 1));
// Delantero izquierdo popa
th_rcs[8] = CreateThruster(_V(-6, 0, 10), _V(0, 0, 1), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[8], 1, .10, _V(-0.922, .046, -7.5872), _V(0, 0, -1));
//AddExhaust(th_rcs[8], .5, 0.01, _V(-1.148, 1.2179, .782), _V(0, 0, -1));
// Delantero izquierdo exterior
th_rcs[9] = CreateThruster(_V(-6, 0, 10), _V(1, 0, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[9], .5, 0.1, _V(-1.324, -1.86, -1.164), _V(-1, 0, 0));
// Grupo trasero derecho
// Trasero derecho superior
th_rcs[10] = CreateThruster(_V(6, 0, -10), _V(0, -1, 0), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[10], 1, .10, _V(3.4827, .3, -7.4698), _V(0, 1, 0));
//AddExhaust(th_rcs[10], 1, 0.1, _V(1.2234, 1.1706, .782), _V(0, 1, 0));
// Trasero derecho inferior
th_rcs[11] = CreateThruster(_V(6, 0, -10), _V(0, 1, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[11], .5, 0.1, _V(1.261, -2.6, -1.175), _V(0, -1, 0));
AddExhaust(th_rcs[11], .5, 0.1, _V(1.158, -2.6, -1.277), _V(0, -1, 0));// Delantero derecho proa
// Trasero derecho proa
th_rcs[12] = CreateThruster(_V(6, 0, -10), _V(0, 0, -1), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[12], 1, .10, _V(1.68, -1.67, -.575), _V(.577, -.577, -.577));
//AddExhaust(th_rcs[12], .5, 0.01, _V(1.148, 1.2179, -.782), _V(0, 0, 1));
// Trasero derecho popa
th_rcs[13] = CreateThruster(_V(6, 0, -10), _V(0, 0, 1), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[13], .5, .1, _V(1.167, -1.86, -1.325), _V(0, 0, -1));
//AddExhaust(th_rcs[13], .5, 0.01, _V(1.148, 1.2179, -.782), _V(0, 0, -1));
// Trasero derecho exterior
th_rcs[14] = CreateThruster(_V(6, 0, -10), _V(-1, 0, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[14], .5, 0.1, _V(1.324, -1.86, -1.164), _V(1, 0, 0));
// Grupo trasero izquierdo
// Trasero izquierdo superior
th_rcs[15] = CreateThruster(_V(-6, 0, -10), _V(0, -1, 0), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[15], 1, 0.1, _V(-3.4827, .3, -7.4698), _V(0, 1, 0));
// Trasero izquierdo inferior
th_rcs[16] = CreateThruster(_V(-6, 0, -10), _V(0, 1, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[16], .5, 0.1, _V(-1.261, -2.6, -1.175), _V(0, -1, 0));
AddExhaust(th_rcs[16], .5, 0.1, _V(-1.158, -2.6, -1.277), _V(0, -1, 0));// Delantero derecho proa
// Trasero izquierdo proa
th_rcs[17] = CreateThruster(_V(-6, 0, -10), _V(0, 0, -1), RCS_THRUST, ph_main, RCS_ISP);
//AddExhaust(th_rcs[17], .5, 0.01, _V(-1.148, 1.2179, -.782), _V(0, 0, 1));
// Trasero izquierdo popa
th_rcs[18] = CreateThruster(_V(-6, 0, -10), _V(0, 0, 1), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[18], .5, .1, _V(-1.167, -1.86, -1.325), _V(0, 0, -1));
// Trasero izquierdo exterior
th_rcs[19] = CreateThruster(_V(-6, 0, -10), _V(1, 0, 0), RCS_THRUST, ph_main, RCS_ISP);
AddExhaust(th_rcs[19], .5, 0.1, _V(-1.324, -1.86, -1.164), _V(-1, 0, 0));
////visual rcs
// Grupo motor de cabeceo hacia arriba "PITCH-UP"
th_group[0] = th_rcs[1];
th_group[1] = th_rcs[6];
th_group[2] = th_rcs[10];
th_group[3] = th_rcs[15];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_PITCHUP);
// Grupo motor de cabeceo hacia abajo "PITCH-DOWN"
th_group[0] = th_rcs[0];
th_group[1] = th_rcs[5];
th_group[2] = th_rcs[11];
th_group[3] = th_rcs[16];
//th_group[4] = th_rcs[21];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_PITCHDOWN);
// Grupo motor de balanceo izquierda "YAW-RIGHT"
th_group[0] = th_rcs[8];
th_group[1] = th_rcs[18];
th_group[2] = th_rcs[2];
th_group[3] = th_rcs[12];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_YAWRIGHT);
// Grupo motor de balanceo derecha "YAW-LEFT"
th_group[0] = th_rcs[3];
th_group[1] = th_rcs[13];
th_group[2] = th_rcs[7];
th_group[3] = th_rcs[17];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_YAWLEFT);
// Grupo motor de alabeo derecho "BANK-RIGHT"
th_group[0] = th_rcs[0];
th_group[1] = th_rcs[6];
th_group[2] = th_rcs[10];
th_group[3] = th_rcs[16];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_BANKRIGHT);
// Grupo motor de alabeo izquierdo "BANK-LEFT"
th_group[0] = th_rcs[1];
th_group[1] = th_rcs[5];
th_group[2] = th_rcs[11];
th_group[3] = th_rcs[15];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_BANKLEFT);
// 2-Movimientos traslacionales
// Grupo motor de traslación derecha "RIGHT"
// Este grupo lo podían formar los impulsores izquierdos delantero de proa y trasero de popa
th_group[0] = th_rcs[9];
th_group[1] = th_rcs[19];
CreateThrusterGroup(th_group, 2, THGROUP_ATT_RIGHT);
// Grupo motor de traslación izquierda "LEFT"
// Este grupo lo podían formar los impulsores derechos delantero de proa y trasero de popa
th_group[0] = th_rcs[4];
th_group[1] = th_rcs[14];
CreateThrusterGroup(th_group, 2, THGROUP_ATT_LEFT);
// Grupo motor de traslación arriba "DOWN"
th_group[0] = th_rcs[0];
th_group[1] = th_rcs[5];
th_group[2] = th_rcs[10];
th_group[3] = th_rcs[15];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_DOWN);
// Grupo motor de traslación abajo "UP"
th_group[0] = th_rcs[1];
th_group[1] = th_rcs[6];
th_group[2] = th_rcs[11];
th_group[3] = th_rcs[16];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_UP);
// Grupo motor de traslación adelante "FORWARD"
th_group[0] = th_rcs[3];
th_group[1] = th_rcs[8];
th_group[2] = th_rcs[13];
th_group[3] = th_rcs[18];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_FORWARD);
// Grupo motor de traslación atrás "BACK"
th_group[0] = th_rcs[2];
th_group[1] = th_rcs[7];
th_group[2] = th_rcs[12];
th_group[3] = th_rcs[17];
CreateThrusterGroup(th_group, 4, THGROUP_ATT_BACK);