Ok so I;m try ing to decipher animation protocals so i can write a tutorial on animation protocals and get the landing gear of my Lunar lander to deploy.
The effect I'm going for is similar to the one in this thread but I'm working with a .dll vice SC3.
Here's what I've got so far...
Animating the leg works as planned but as soon as I add the strut (child animation) to it i get a CTD.
The effect I'm going for is similar to the one in this thread but I'm working with a .dll vice SC3.
Here's what I've got so far...
Code:
ANIMATIONCOMPONENT_HANDLE parent;
static MGROUP_ROTATE FrontLeg ( 2, LgFwdLegGroups, 4, LEM_LG_Pivot[0], _V(-1.0, 0.0, 0.0), (float) 45*RAD);
Strut[0] = new MGROUP_ROTATE (0, &LgFwdStrut, 1, _V(0,-1.1995, 3.6266), _V(-1.0, 0.0, 0.0), (float)-45*RAD);
Downlock[0] = new MGROUP_ROTATE (0, &LgFwdDownlock, 1, _V(0,-1.05769, 2.83017), _V(-1.0, 0.0, 0.0), (float)-45*RAD);
anim_Gear = CreateAnimation (1.0);
parent = AddAnimationComponent (anim_Gear, 0, 1, &FrontLeg);
LGstrut = CreateAnimation (1.0);
AddAnimationComponent (LGstrut, 0, 1, Strut[0], parent);
Animating the leg works as planned but as soon as I add the strut (child animation) to it i get a CTD.