Interceptor
Well-known member
How about a radar that tracks vehicles,and follows the focused vessel like Loru,and woo482 have in there Carl Sagan space center addon,that would be over the top cool.:thumbup:
Last edited by a moderator:
How about a radar that tracks vehicles,and follows the focused vessel like Loru,and woo482 have in there Carl Sagan space center addon,that would be over the top cool.:thumbup:
static UINT EGrp100[1] = {GRP_cranearm};//arm
RAIL = new MGROUP_ROTATE(0,EGrp100, 1, _V(0,0,46.653), _V(0,1,0), (float)(180*RAD));
anim_RAIL = CreateAnimation (0.0);
parent = AddAnimationComponent (anim_RAIL, 0, 1, RAIL);
static UINT EGrp102[1] = {GRP_MESHEND};//crane end
CRANE2 = new MGROUP_TRANSLATE(0,EGrp102, 1, _V(-65,0,0));
anim_CRANE = CreateAnimation (0.0);
parent = AddAnimationComponent (anim_CRANE, 0, 1, CRANE2, parent);
//
static UINT EGrp103[1] = {GRP_cube02};//magnet
CRANE3 = new MGROUP_TRANSLATE(0,EGrp103, 1, _V(0,-29,0));
static UINT EGrp104[1] = {GRP_CABLE};//cable
CRANE4 = new MGROUP_SCALE(0,EGrp104, 1, _V(1,29.75,1), _V(1,19.2,1));
//anim_CRANE = CreateAnimation (0.0);
anim_CRANE1 = CreateAnimation (0.0);
//parent = AddAnimationComponent (anim_CRANE, 0, 1, CRANE2, parent);
parent = AddAnimationComponent (anim_CRANE1, 0, 1, CRANE3, parent);
parent = AddAnimationComponent (anim_CRANE1, 0, 1, CRANE4, parent);
CRANERAIL = new MGROUP_TRANSLATE(LOCALVERTEXLIST,MAKEGROUPARRAY(arm1_tip),3,_V(-68,0,0));
AddAnimationComponent (anim_CRANE, 0, 1, CRANERAIL, parent);
double db = simdt * .1;
//rotation movement
if (RAIL_proc > 1) RAIL_proc = (1);
else if (RAIL_proc < 0) RAIL_proc = (0);
if (RAIL_check == RAIL_DOWN)RAIL_proc = (RAIL_proc + db);
else if (RAIL_check == RAIL_UP)RAIL_proc = (RAIL_proc - db);
else if (RAIL_check == RAIL_STOP)RAIL_proc = RAIL_proc;
SetAnimation (anim_RAIL, RAIL_proc);
if (CRANE_proc >1) CRANE_proc = (1);
else if (CRANE_proc < 0) CRANE_proc = (0);
if (CRANE_check == CRANE_DOWN)CRANE_proc = (CRANE_proc + db);
else if (CRANE_check == CRANE_UP)CRANE_proc = (CRANE_proc - db);
else if (CRANE_check == CRANE_STOP)CRANE_proc = CRANE_proc;
SetAnimation (anim_CRANE, CRANE_proc);
ThanksNice base. What ship is that?
Ok. I don't think it would be hard to make them UCGO. Just make them driveable and be able to unload cargo. Would you mind if I give it a shot?
ok. I guess you can't have a translate in with a rotation? as you can see the animation is off. So I guess I might try a new approach and make a RMS arm that way I will be able to attach a vessel and bring it on board.
[ANIM_COMP_0]
; c-arm
SEQ=0
GROUPS=[B]1[/B]
RANGE=(0.1,0.8)
TYPE=ROTATE
ROT_PNT=(0,0,0)
ROT_AXIS=(0,1,0)
ANGLE=90.0
[ANIM_COMP_1]
; c-arm
SEQ=0
GROUPS=[B]2[/B]
RANGE=(0.1,0.9)
TYPE=TRANSLATE
SHIFT=(0,0,-50)
[B]PARENT=0[/B]
CRANERAIL = new MGROUP_TRANSLATE(LOCALVERTEXLIST,MAKEGROUPARRAY(arm1_tip),3,_V(0,0,0));
PROPELLANT_HANDLE TANK;
TANK = CreatePropellantResource (FUELMASS);
// ***************** thruster definitions *******************
th_main = CreateThruster (_V(0,1,-94.3), _V(0,0,1), MAXMAINTH, TANK, ISP);
CreateThrusterGroup (&th_main, 1, THGROUP_MAIN);
th_retro = CreateThruster (_V(0,1,94.3), _V(0,0,-1), MAXRETROTH, TANK, ISP);
CreateThrusterGroup (&th_retro, 1, THGROUP_RETRO);
th_rcs[0] = CreateThruster (_V( 1,1, 1), _V(0,0,1),MAXRCSTH, TANK, ISP);
//left front tread
th_rcs[1] = CreateThruster (_V(-1,1, 1), _V(0,0,1), MAXRCSTH, TANK, ISP);
// right front tread
th_rcs[2] = CreateThruster (_V( 1,1,-1), _V(0,0,-1), MAXRCSTH, TANK, ISP);
//left rear tread
th_rcs[3] = CreateThruster (_V(-1,1,-1), _V(0,0,-1), MAXRCSTH, TANK, ISP);
// right rear tread
th_rcs[4] = CreateThruster (_V( 1,1, 1), _V(0,0,1),MAXRCSTH, TANK, ISP);
//left front tread
th_rcs[5] = CreateThruster (_V(-1,1, 1), _V(0,0,1), MAXRCSTH, TANK, ISP);
// right front tread
th_rcs[6] = CreateThruster (_V( 1,1,-1), _V(0,0,-1), MAXRCSTH, TANK, ISP);
//left rear tread
th_rcs[7] = CreateThruster (_V(-1,1,-1), _V(0,0,-1), MAXRCSTH, TANK, ISP);
th_rcs[4] = CreateThruster (_V(0,0,1), _V(1,0,0), MAXRCSTH, TANK, ISP);
th_rcs[5] = CreateThruster (_V(0,0,-1), _V(1,0,0), MAXRCSTH, TANK, ISP);
th_rcs[6] = CreateThruster (_V(0,0,1), _V(-1,0,0), MAXRCSTH, TANK, ISP);
th_rcs[7] = CreateThruster (_V(0,0,-1), _V(-1,0,0), MAXRCSTH, TANK, ISP);
th_group[0] = th_rcs[0];
th_group[1] = th_rcs[3];
CreateThrusterGroup (th_group, 2, THGROUP_ATT_YAWLEFT);
th_group[0] = th_rcs[1];
th_group[1] = th_rcs[2];
CreateThrusterGroup (th_group, 2, THGROUP_ATT_YAWRIGHT);
th_group[0] = th_rcs[4];
th_group[1] = th_rcs[6];
CreateThrusterGroup (th_group, 2, THGROUP_ATT_LEFT);
th_group[0] = th_rcs[5];
th_group[1] = th_rcs[7];
CreateThrusterGroup (th_group, 2, THGROUP_ATT_RIGHT);
const double FUELMASS = 1000;
const double ISP = 11e12;
const double MAXMAINTH = 12000000;
const double MAXRETROTH = 2000000;
const double MAXRCSTH = 12000000;