Well I have for the code.
But this messes the rear animation
---------- Post added 03-15-17 at 06:20 AM ---------- Previous post was 03-14-17 at 03:12 PM ----------
I redid the animation in the front. Like in the drawing above. I made the rod that would drive the arm a parent.
Then for the arm. I made it a parent and a child of the drive parent
then the drum are a child of this.
So now I can rotate the arm, drum and body.
But not sure how to rear would work?
But I guess the touchdown points need to be adjusted based on the drums?
Code:
ANIMATIONCOMPONENT_HANDLE parentFRONT,parentREAR,PARENT,PARENTR;
static UINT FM[20] = {2,3,4,5,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27 };//BODY
static MGROUP_ROTATE FRONT(0, FM, 19, _V(0, .4882646, .5906365), _V(1, 0, 0), (float)(360 * RAD)); // -2 .. +145
anim_FRONTBODY = CreateAnimation(0.5);
parentFRONT = AddAnimationComponent(anim_FRONTBODY, 0, 1, &FRONT);
static UINT FARM[2] = { 9,25 };//FRONT ARM
static MGROUP_ROTATE FRONTARM(0, FARM, 2, _V(0, .4882646, .5906365), _V(1, 0, 0), (float)(220 * RAD)); // -2 .. +145
anim_FRONTARM = CreateAnimation(0.5);
PARENT=AddAnimationComponent(anim_FRONTARM, 0, 1, &FRONTARM,parentFRONT);
static UINT FDRUM[2] = { 7,1 };//FRONT DRUM
static MGROUP_ROTATE FRONTDRUM(0, FDRUM, 2, _V(0, .5812749, 2.202556), _V(-1, 0, 0), (float)(360 * RAD)); // -2 .. +145
anim_DRUMFRONT = CreateAnimation(0.0);
AddAnimationComponent(anim_DRUMFRONT, 0, 1, &FRONTDRUM, PARENT);
//REAR BODY ROTATE
static MGROUP_ROTATE REAR(0, FM, 20, _V(0, .4881342, -.6023377), _V(1, 0, 0), (float)(360 * RAD)); // -2 .. +145
anim_REARBODY = CreateAnimation(0.5);
parentREAR = AddAnimationComponent(anim_REARBODY, 0, 1, &REAR);
static UINT RARM[2] = { 8, 24 };//REAR ARM
static MGROUP_ROTATE REARARM(0, RARM, 2, _V(0, .4881342, - .6023377), _V(-1, 0, 0), (float)(220 * RAD)); // -2 .. +145
anim_REARARM = CreateAnimation(0.5);
PARENTR = AddAnimationComponent(anim_REARARM, 0, 1, &REARARM, parentREAR);
static UINT RDRUM[2] = { 0,6 };// REAR DRUM
static MGROUP_ROTATE REARDRUM(0, RDRUM, 2, _V(0, .5621216 ,- 2.207251), _V(1, 0, 0), (float)(360 * RAD)); // -2 .. +145
anim_DRUMREAR = CreateAnimation(0.0);
AddAnimationComponent(anim_DRUMREAR, 0, 1, &REARDRUM, PARENTR);
But this messes the rear animation
---------- Post added 03-15-17 at 06:20 AM ---------- Previous post was 03-14-17 at 03:12 PM ----------
I redid the animation in the front. Like in the drawing above. I made the rod that would drive the arm a parent.
Then for the arm. I made it a parent and a child of the drive parent
then the drum are a child of this.
So now I can rotate the arm, drum and body.
But not sure how to rear would work?
But I guess the touchdown points need to be adjusted based on the drums?