Exemple #1
0
        public static Curve3D CreateTestObject1MovementCurve()
        {
            Curve3D curve1 = new Curve3D();

            curve1.PostLoop = CurveLoopType.Cycle;
            curve1.AddKey(0, new Vector3(20, 2, 20));
            curve1.AddKey(1, new Vector3(-20, 2, 80));
            curve1.AddKey(3, new Vector3(-3, 2, -10));
            curve1.AddKey(4, new Vector3(-20, 2, -50));
            curve1.AddKey(5, new Vector3(-50, 2, -50));
            curve1.AddKey(6, new Vector3(38, 2, -47));
            curve1.AddKey(7, new Vector3(20, 2, 20));

            return(curve1);
        }