   Skinned Mesh: Translate Mesh to the Last Origin Bone Position
  Hi allMy skinned mesh have 3 animations, 2 are on the same position, lets saybreathing and get pain, but, the third one its a long range attack, thenthe mesh moves from his origin position to punch two steps forward, afterthat, i put the breathing animation again, but obviously the buddy returnto the breathing position. I want the mesh keep the two steps forward pose,but my methods to do it not work so well.First, find the bone, his name its origin on 3dsmax, is the root of the skeleton,my method is:for(UINT iBone...)..if( strcmp(pMeshContainer->pSkinInfo->GetBoneName(iBone),"origin") == 0){pMeshContainer->OriginBone = iBone;}Then update all the matrix tree and then get the bone position:for (iAttrib = 0; iAttrib < pMeshContainer->NumAttributeGroups; iAttrib++)   {   for (iPaletteEntry = 0; iPaletteEntry < pMeshContainer->NumPaletteEntries; ++iPaletteEntry)   {   iMatrixIndex = pBoneComb[iAttrib].BoneId[iPaletteEntry];  if (iMatrixIndex != UINT_MAX)   { D3DXMatrixMultiply(&BoneMatrices[iPaletteEntry], &pMeshContainer->BoneOffsetMatrices[iMatrixIndex], pMeshContainer->BoneMatrixPtrs[iMatrixIndex]);   }   }vBonePos.x = pMeshContainer->BoneMatrixPtrs[pMeshContainer->OriginBone]->_41;vBonePos.y = pMeshContainer->BoneMatrixPtrs[pMeshContainer->OriginBone]->_42;vBonePos.z = pMeshContainer->BoneMatrixPtrs[pMeshContainer->OriginBone]->_43; std::cout << " X: " << vBonePos.x << " z: " << vBonePos.z << std::endl;And i see correctly the position when the model moves forward, and its okbecause the model moves on -Z direction, and the position printed are about-2 on Z, and backs to zero then the breathing animation its going on.Then i don't know how to do it exactly, i get the periodic position, the thetrack its up to .95 (from 0.0 to 1.0 and repeat), i translate the model tothe x and z bone position, but every time the model are on different places,i have a constant framerate, i say that because maybe, the elapsed time between frames are bigger sometimes and the .95 position are reached later or earlier,but no, the framerate are always on 70~72 framespsec.If someone could suggest other method, or know how to deal with this would bevery appreciated.   
  Hi again, i really need any suggestions, thanks   