Exemplo n.º 1
0
 /// <summary>
 /// Deserialize an array of animation curves with tangents from binary data.
 /// </summary>
 public static void ReadFloatCurveArray(BinaryReader reader, AnimationCurve[] curves)
 {
     foreach (AnimationCurve curve in curves)
     {
         InputAnimationSerializationUtils.ReadFloatCurve(reader, curve);
     }
 }
        private static void PoseCurvesFromStream(BinaryReader reader, PoseCurves curves)
        {
            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.PositionX);
            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.PositionY);
            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.PositionZ);

            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.RotationX);
            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.RotationY);
            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.RotationZ);
            InputAnimationSerializationUtils.ReadFloatCurve(reader, curves.RotationW);
        }