Hi everyone,
When you want to animate your model, what you do is to use setMD2Animation ;
modelnode->setMD2Animation (scene::EMAT_ATTACK);
When anyone uses this function, the model goes to a loop for eternity unless you swith to another animation. So for example if i fire and use attack animation, the model continues to make attack animation although i stop firing.
Here is my suggestion;
setMD2Animation function should be entented like below,
modelnode->setMD2Animation (scene::EMAT_ATTACK,number_of_loop,scene::EMAT_STAND);
this function tells that make number_of_loop times ATTACK ANIMATION AND THEN SWITH TO STAND ANIMATION.
WHAT DO YOU THINK?
EXTENDED setMD2Animation
-
cyberbobjr
- Posts: 64
- Joined: Mon Sep 08, 2003 8:21 am
- Location: Paris, France
-
hearsedriver
- Posts: 81
- Joined: Fri Aug 22, 2003 12:06 pm
- Location: Germany
- Contact:
I'd prefer a FSM for that, so that you can have exit conditions for one state, etc.
Cheers.
Cheers.
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de