Пример #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);
         }
     }
 }