Пример #1
0
        public Vector3AnimationCurve(Serializable serialized)
        {
            xV = new AnimationCurve();
            yV = new AnimationCurve();
            zV = new AnimationCurve();

            xV = ExtendedAnimationCurves.Deserialize(serialized.xT, serialized.xV);
            yV = ExtendedAnimationCurves.Deserialize(serialized.yT, serialized.yV);
            zV = ExtendedAnimationCurves.Deserialize(serialized.zT, serialized.zV);
        }
Пример #2
0
        public QuaternionAnimationCurve(Serializable serialized)
        {
            wQ = new AnimationCurve();
            zQ = new AnimationCurve();
            yQ = new AnimationCurve();
            xQ = new AnimationCurve();

            xQ = ExtendedAnimationCurves.Deserialize(serialized.xT, serialized.xV);
            yQ = ExtendedAnimationCurves.Deserialize(serialized.yT, serialized.yV);
            zQ = ExtendedAnimationCurves.Deserialize(serialized.zT, serialized.zV);
            wQ = ExtendedAnimationCurves.Deserialize(serialized.wT, serialized.wV);
        }