I've tried this:
LPD3DXANIMATIONSET temp = NULL;if(AniController->GetAnimationSetByName(AnimationName, &temp) != S_OK) return;AniController->SetTrackAnimationSet(Track, temp);AniController->SetTrackEnable(Track, true);AniController->SetTrackSpeed(Track, 1.0f);AniController->SetTrackWeight(Track, 1.0f);AniController->ResetTime();AniController->KeyTrackEnable(Track, false, temp->GetPeriod());temp->Release();
But the animation just ends after a random time. I've checked the temp->GetPeriod() value and it's the same everytime.
Am I approaching it all wrong? or Am i just doing it wrong?