- Joined
- Jan 13, 2008
- Messages
- 2,303
- Reaction score
- 6
- Points
- 38
- Location
- Atlanta, GA, USA, North America
I'm working on an animated launch pad and have run across a problem. I have a crew access arm that both needs to translate up and down, and then rotate out of the way. I have tried both making the rotation and the translation parents of each other without success, as well as declaring them both static (not child animations of anything). Currently, I'm using Orbiter's semi-automatic animation system.
Here's the code as of now declaring the two:
Currently, they're setup as I last tried, making them both parentless animations.
Should I use the manual animation with clbkAnimate() for this? Or am I just missing something here? Are there any examples of multiple animations applied to the same mesh groups anywhere?
Thanks for any help,
Zatman
Here's the code as of now declaring the two:
Code:
static UINT crewarm2groups[3] = {10,11,12};
static MGROUP_TRANSLATE crewarmtranslate_ (0, crewarm2groups, 3, _V(0,26.75,0));
crewarmtranslate = CreateAnimation(0.0);
crewarmtrans = AddAnimationComponent(crewarmtranslate, 0, 1, &crewarmtranslate_);
static UINT crewarmgroups[3] = {10,11,12};
static MGROUP_ROTATE crewarmrot_(0,crewarmgroups, 3, _V(-10.26, 54.553, -5.927), _V(0,1,0), (float)(0.5*PI));
crewarm = CreateAnimation(0.0);
crewarmbase = AddAnimationComponent (crewarm, 0, 1, &crewarmrot_);
Should I use the manual animation with clbkAnimate() for this? Or am I just missing something here? Are there any examples of multiple animations applied to the same mesh groups anywhere?
Thanks for any help,
Zatman