Is there a way to play an animation (let's say wave from the sydeny model) once only (without loop)? I've searchesd the docs for a while and couldn't find anything. All examples I can gather loop the animation but there is none which play an animation once only (returning to idle afterwards).
If someone could point me my error, omision or whatever please do. If this feature isn't implemented I will need it soon so I'd better ask for it.
Cheers and thanks
one time animation in .md2 and .ms3d
-
Robomaniac
- Posts: 602
- Joined: Sat Aug 23, 2003 2:03 am
- Location: Pottstown, PA
- Contact:
Try setMD2Animation in your IAnimatedMeshSceneNode. Maybe that will work, i'm no expert though.
[edit] -- Also, you could have a loop like
...just a thought [/edit]
--The Robomaniac
[edit] -- Also, you could have a loop like
Code: Select all
int startFrame; //your first frame number
int currFrame; //current frame
int finalFrame; //your final frame number
startFrame = 8; //first frame of animation
currFrame = startFrame; //set current frame to the start
//loop through the animation until it is finished
while(currframe < y)
{
node->setCurrentFrame(currframe);
currframe++;
}
--The Robomaniac
-
Guest
-
Robomaniac
- Posts: 602
- Joined: Sat Aug 23, 2003 2:03 am
- Location: Pottstown, PA
- Contact: