Ejemplo n.º 1
0
 public DanceMotionFactoryFromBVH(string name, string filePath, int beatCount)
 {
     this.bvhMotion  = BvhFormat.Import(filePath);
     this.beatCount  = beatCount;
     this.motionName = name;
     this.fileName   = filePath;
 }
Ejemplo n.º 2
0
 private static DanceMotion createFromBvhMotion(string name, BvhMotion bvhMotion, int beatCount, string[] bones)
 {
     Array.Sort <string>(bones);
     DancePose[] array = new DancePose[bvhMotion.Count];
     for (int i = 0; i < array.Length; i++)
     {
         array[i] = DanceMotionFactoryFromBVH.createPoseFromBvhPose(bvhMotion.RootNode, bvhMotion[i], bones);
     }
     return(new DanceMotion(name, beatCount, array, null));
 }