Пример #1
0
        public void Setup()
        {
            animation = new Components.Animation();
            h         = new TestHierarchy();

            leftRight = new AnimationClip()
            {
                length = 1
            };
            simple = new AnimationCurve()
            {
                PreLoop = CurveLoopType.Constant, PostLoop = CurveLoopType.Constant
            };
            empty = new AnimationCurve()
            {
                PreLoop = CurveLoopType.Constant, PostLoop = CurveLoopType.Constant
            };
            simple.Keys.Add(new CurveKey(0, 0, 10, 10, CurveContinuity.Smooth));
            simple.Keys.Add(new CurveKey(0.5f, 5, 0, 0, CurveContinuity.Smooth));
            simple.Keys.Add(new CurveKey(1, 0, 0, 0, CurveContinuity.Smooth));
        }
Пример #2
0
        public void Setup()
        {
            animation = new Components.Animation();
            h = new TestHierarchy();

            leftRight = new AnimationClip() { length = 1 };
            simple = new AnimationCurve() { PreLoop = CurveLoopType.Constant, PostLoop = CurveLoopType.Constant };
            empty = new AnimationCurve() { PreLoop = CurveLoopType.Constant, PostLoop = CurveLoopType.Constant };
            simple.Keys.Add(new CurveKey(0, 0, 10, 10, CurveContinuity.Smooth));
            simple.Keys.Add(new CurveKey(0.5f, 5, 0, 0, CurveContinuity.Smooth));
            simple.Keys.Add(new CurveKey(1, 0, 0, 0, CurveContinuity.Smooth));
        }