• Advertisement
Sign in to follow this  

When an X File Animation Set is at its end?

This topic is 3906 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