Beispiel #1
0
 private void SetKeysR(
     out IJointAnimKey[] Destination,
     short[] Source,
     float RotScale,
     BCA.ANF1Section.AnimatedJoint.AnimComponent.AnimIndex Component)
 {
     Destination = new IJointAnimKey[(int)Component.Count];
     if (Component.Count <= (ushort)0)
     {
         throw new Exception("Count <= 0");
     }
     if (Component.Count == (ushort)1)
     {
         Destination[0] =
             new Key((float)Source[(int)Component.Index] * RotScale);
     }
     else
     {
         for (int index = 0; index < (int)Component.Count; ++index)
         {
             Destination[index] =
                 new Key((float)Source[(int)Component.Index + index] *
                         RotScale);
         }
     }
 }
Beispiel #2
0
 public AnimComponent(EndianBinaryReader er)
 {
     this.S =
         new BCA.ANF1Section.AnimatedJoint.AnimComponent.AnimIndex(er);
     this.R =
         new BCA.ANF1Section.AnimatedJoint.AnimComponent.AnimIndex(er);
     this.T =
         new BCA.ANF1Section.AnimatedJoint.AnimComponent.AnimIndex(er);
 }