Exemplo n.º 1
0
 private float[] UpdateBoneArray(float[] array, Version version)
 {
     if (!BoneTypeExtensions.IsIncludeUpperChest(version))
     {
         float[]  fixedArray = new float[array.Length + 1];
         BoneType bone;
         for (bone = BoneType.Hips; bone < BoneType.UpperChest; bone++)
         {
             fixedArray[(int)bone] = array[(int)bone];
         }
         fixedArray[(int)bone] = 0.0f;
         for (bone = BoneType.UpperChest + 1; bone < BoneType.Last; bone++)
         {
             fixedArray[(int)bone] = array[(int)bone - 1];
         }
         return(fixedArray);
     }
     return(array);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 5.6.0 and greater
 /// </summary>
 public static bool IsIncludeUpperChest(Version version)
 {
     return(BoneTypeExtensions.IsIncludeUpperChest(version));
 }