Sign in to follow this  
sansured

Animation Problem

Recommended Posts

sansured    138
Hi, I am trying to make multi animations with .x files.I can set and play the animations but i have a problem.I want to use 4 different animations one by one but for this i need to detect end of each animations but i can't do it. Does anyone know's how can i detect my animation ends. Thanks.

Share this post


Link to post
Share on other sites
RenderTarget    398
You can get the period of an animation set, and query the animation controller's current time, and the animation position of each track. That should be all the time data you need--query the animation position of the track until it approaches the end of the period.

Specifically, what I do is to examine ( period - animpos ). If that amount is less than the amount I'm about to pass to AdvanceTime(), I key the new animation to a new track to start at current time + ( period - animpos ), and the old animation to end at the same time.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this