public static void SetTransform(this MyCharacterBone bone, Matrix matrix) { var q = Quaternion.CreateFromRotationMatrix(matrix); var t = matrix.Translation; bone.SetTransform(ref t, ref q); }