How to play an animation without looping it

Topics: User Forum
Jan 26, 2007 at 4:53 AM
Hi everybody,

Im learning to use AnimationComponent, I use AnimationController to anime a model ('tiny.x' that comes with DirectX SDK) and I wonder how could I play a single animation without looping it ? And by the way how can I know that the animation has ended ???

Thanks a lot for this very useful library...
Jan 26, 2007 at 3:55 PM
You can set the SpeedFactor to 0 to stop the animation, and for some reason access to the current time in the animation was taken out. I'll add that in today. Once that is in, you can check the current animation time vs the duration of the animation and stop it. I'll consider adding a "PlayAnimationOnce" method.
Jan 26, 2007 at 6:36 PM
Thanks a lot
Jan 27, 2007 at 3:39 PM
I didn't get to posting the code yesterday, but I'll do it today, and hopefully I'll have a few examples and new dll to go with it.
Jan 27, 2007 at 10:20 PM
I made a new release today with three examples. The first example addresses your question.
Jan 30, 2007 at 6:12 AM
I tried it and it works fine, thank you.