Jump to content
  • Advertisement
Sign in to follow this  

When an X File Animation Set is at its end?

This topic is 4029 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I figure out when an animation set is at the end? I try to use the following code to figure out the position, but the animation skips over the end values at time and loops. void SkinnedMesh::playAnimation(LPD3DXANIMATIONCONTROLLER animeCon) { animeCon->GetAnimationSet(m_nNextAnimation, &animation); animeCon->SetTrackAnimationSet(m_dwCurrentTrack, animation); animeCon->GetTrackDesc( m_dwCurrentTrack, & td ); } double SkinnedMesh::GetAnimationPercent(void) { return animation->GetPeriodicPosition(td.Position) / animation->GetPeriod(); } How can I tell when the animation is over so I can change the current animation to the next?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!