Exemplo n.º 1
0
        // Get the matrix of the given pose
        static FbxAMatrix GetPoseMatrix(FbxPose pPose, int pNodeIndex)
        {
            FbxMatrix lMatrix = pPose.GetMatrix(pNodeIndex);

            FbxAMatrix lPoseMatrix = new FbxAMatrix();

            //memcpy((double*)lPoseMatrix, (double*)lMatrix, sizeof(lMatrix.mData));
            lPoseMatrix.SetRow(0, lMatrix.GetRow(0));
            lPoseMatrix.SetRow(1, lMatrix.GetRow(1));
            lPoseMatrix.SetRow(2, lMatrix.GetRow(2));
            lPoseMatrix.SetRow(3, lMatrix.GetRow(3));
            return(lPoseMatrix);
        }