Advanced Question Multiple animations with 1 mesh group

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
7,609
Reaction score
1,754
Points
203
Location
Dallas, TX
How can I have multiple animation apply to 1 mesh group?

I have 1 group that I want to translate, scale and then rotate.

I think I have done it with fake parts.

Code:
    //ramps
    static UINT RGrp4[1] = { 15 };//RAMP1A
    RAMP_anim[0] = new MGROUP_TRANSLATE(0, RGrp4, 1, _V(1.3, 0, 0));
    anim_RAMP1 = CreateAnimation(0);
    parent = AddAnimationComponent(anim_RAMP1, 0, 1, RAMP_anim[0]);
    static UINT RGrp6[1] = { 16 };//RAMP1B
    RAMP_anim[1] = new MGROUP_TRANSLATE(0, RGrp6, 1, _V(.4, 0, 0));
    anim_RAMP2 = CreateAnimation(0.0);
    parent1 = AddAnimationComponent(anim_RAMP2, 0, .3, RAMP_anim[1], parent);

So here Ramp1 animation translates and is a parent so it carries rgrp6 with it.

ramp 2 should translate RGrp6 then scale it and finally rotate
 
Top