示例#1
0
 public void ResampleMotion(MotionData reference)
 {
     if (Source.Bones.Length != reference.Source.Bones.Length)
     {
         Debug.Log("Could not resample motion because number of bones does not match.");
         return;
     }
     foreach (Frame frame in Frames)
     {
         frame.World = reference.SamplePosture(Utility.Normalise(frame.Timestamp, 0f, Frames.Last().Timestamp, 0f, reference.Frames.Last().Timestamp));
     }
 }