예제 #1
0
 public AbstractTsf(AbstractTsf abstractTsf)
 {
     this.name     = abstractTsf.name;
     this.space    = abstractTsf.space;
     this.position = abstractTsf.position;
     this.rotation = abstractTsf.rotation;
 }
예제 #2
0
 public AbstractTsfStruct(AbstractTsf abstractTsf)
 {
     this.name       = abstractTsf.name;
     this.position   = abstractTsf.position;
     this.rotation   = abstractTsf.rotation;
     this.space      = abstractTsf.space;
     this.localScale = abstractTsf.localScale;
 }
예제 #3
0
 public static void Copy(AbstractTsf from, AbstractTsf to)
 {
     to.name       = from.name;
     to.space      = from.space;
     to.position   = from.position;
     to.rotation   = from.rotation;
     to.localScale = from.localScale;
 }
예제 #4
0
 public void FromFingerPoseToBones(FingerPose finger, List <AbstractTsf> bonesList)
 {
     // We have to copy the content as we can't overwrite the item's references. It will be merged again from the splitted bones array to InputDataProvider.bones
     for (int b = 0; b < bonesList.Count; b++)
     {
         if (b < finger.bones.Count)
         {
             AbstractTsf.Copy(finger.bones[b], bonesList[b]);
         }
         else
         {
             bonesList[b] = new AbstractTsf("Missing bone pose", Space.Self);
         }
     }
 }