I am working on an internship in which we are developing a Tutor Model. We have two animations we would like to happen at the same time. The first animation, the tutor raises her hand to shoulder height, palm facing away from the tutor. The second animation is counting on her fingers. It can be 1-5 so essentially there are 5 animations.
I am currently just trying one of the counting animations. The problem is the counting animation is almost twice as fast as the hand raising animation. So when they are mixed, they work independently of each other and are completely out of sync. Is there anyway to get the two animations to sync up without manually picking and guessing on possible times in the setModelAnimParams function.
Heres the code of the two animations:
Code:
h3d.setupModelAnimStage(_tutor, 0, tutorCOF2, 0, string.Empty, true); //Hold two fingers up for the count of two. Additive is true
h3d.setupModelAnimStage(_tutor, 1, tutorRH, 0, string.Empty, false); //Raise Hand
h3d.setModelAnimParams(_tutor, 0, _animTime * 14.5f, _weight);
h3d.setModelAnimParams(_tutor, 1, _animTime * 24.0f, 1.0f - _weight);
I'm still fairly new to Horde3D and any help or suggestions would be great. If you need any other information let me know. Thanks
EDIT: Or if there is a way to get the number of frames in an animation using a function.