ANIMATIONCOMPONENT_HANDLE parent;
//ARM2
//sample
///static UINT gear_groups[2] = {5, 6};
//static MGROUP_ROTATE gear (0, gear_groups, 2, _V (0, -1.0, 8.5), _V (1, 0, 0), (float) (0.45*PI));
//static UINT wheel_groups[2] = {10, 11};
//wheel = new MGROUP_ROTATE (0, wheel_groups, 2, _V (0, -1.0, 6.5), _V (1, 0, 0), (float) (2*PI));
//anim_gear = CreateAnimation (0.0);
//parent = AddAnimationComponent (anim_gear, 0, 1, &gear);
//anim_wheel = CreateAnimation (0.0);
//AddAnimationComponent (anim_wheel, 0, 1, wheel, parent);
static UINT ARM2A_groups[1] = {39};//136
static MGROUP_ROTATE ARM2A (0, ARM2A_groups, 1, _V (0, .717842, 1.606504), _V (1, 0, 0), (float) (0.90*PI));
static UINT ARM2B_groups[1] = {38};//136
ARM2B = new MGROUP_ROTATE (0, ARM2B_groups, 1, _V (0, 1.143031 , .719682), _V (-1, 0, 0), (float) (0.90*PI));
static UINT ARM2C_groups[2] = {37,69};//136// static MGROUP_ROTATE ARM2C (0, ARM2C_groups, 2, _V (0, .743874, 1.615181), _V (1, 0, 0), (float) (0.45*PI));
ARM2C = new MGROUP_ROTATE (0, ARM2C_groups, 2, _V (0, .7456095, 1.613446), _V (1, 0, 0), (float) (0.90*PI));
anim_ARM2A = CreateAnimation (0.0);
anim_ARM2B = CreateAnimation (0.0);
anim_ARM2C = CreateAnimation (0.0);
parent = AddAnimationComponent (anim_ARM2A, 0, .33, &ARM2A);
//parent = AddAnimationComponent (anim_ARM2, 0, 1, &ARM2B_groups);
//parent = AddAnimationComponent (anim_ARM2, 0, 1, &ARM2C_groups);
anim_ARM2 = CreateAnimation (0.0);
AddAnimationComponent (anim_ARM2, .33, .66, ARM2B, parent);
AddAnimationComponent (anim_ARM2, .66, 1, ARM2C, parent);
// AddAnimationComponent (anim_ARM2, 0, 1, &ARM2A);