@Tispe: No, the reload animation is only for reloading, run animation is only running.
I want to play both animations run and reload (at the same time)
He is my current code to play 2 animations at the same time (and it's working):
animController->UnkeyAllTrackEvents(m_currentTrack);
animController->UnkeyAllTrackEvents(newTrack);
// Get animations
animController->SetTrackAnimationSet(0, walkAnimSet);
animController->SetTrackAnimationSet(1, reloadAnimSet);
// Assign "walk" animation to track 0
animController->SetTrackEnable(0, true);
animController->KeyTrackWeight(0, 1.0f, m_currentTime, transitionTime, D3DXTRANSITION_LINEAR);
animController->SetTrackSpeed(0, 1.0f);
// Assign "reload" animation to track 1
animController->SetTrackEnable(1, true);
animController->KeyTrackWeight(1, 1.0f, m_currentTime, transitionTime, D3DXTRANSITION_LINEAR);
animController->SetTrackSpeed(1, 1.0f);
The only problem is that the animation transition is not smooth, how do I make the transition smooth?