コード例 #1
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();

            Vector2D[] pods      = Polygon2D.FromRectangle(2, 5);
            Vector2D[] mainhullp = Polygon2D.FromRectangle(3, 7);
            Vector2D[] subhullp  = Polygon2D.FromRectangle(4, 2);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI + .7f, new Vector2D(-3, 2)), subhullp));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI - .7f, new Vector2D(-3, -2)), subhullp));
            coes.Add(DefaultCoefficients);



            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-3, 3)), pods));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-3, -3)), pods));
            coes.Add(DefaultCoefficients);



            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(0, 0)), mainhullp));
            coes.Add(DefaultCoefficients);



            DefaultShape = new RigidBodyTemplate(.01f, 9.609863f, goes.ToArray(), coes.ToArray());
            DefaultShape.BalanceBody();

            DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #2
0
        static void InitShape()
        {
            Coefficients DefaultCoefficients = TimeWarp.Coefficients;

            Vector2D[] engineconevertecies = new Vector2D[]
            {
                new Vector2D(30, 10),
                new Vector2D(-30, 40),
                new Vector2D(-30, -40),
                new Vector2D(30, -10)
            };
            Vector2D offset = Polygon2D.CalcCentroid(engineconevertecies);

            OperationHelper.ArrayRefOp <Vector2D, Vector2D, Vector2D>(
                engineconevertecies,
                ref offset,
                engineconevertecies,
                Vector2D.Subtract);

            //engineconevertecies = Vector2D.Translate(-offset, engineconevertecies);

            IGeometry2D mainhull   = new Polygon2D(ALVector2D.Zero, Polygon2D.FromRectangle(80, 10));
            IGeometry2D engine     = new Polygon2D(new ALVector2D(0, new Vector2D(-30, 0)), Polygon2D.FromNumberofSidesAndRadius(10, 40));
            IGeometry2D enginecone = new Polygon2D(new ALVector2D(0, offset), engineconevertecies);

            DefaultShape = new RigidBodyTemplate(12, 1231.9384791047398f, new IGeometry2D[] { engine, mainhull, enginecone }, new Coefficients[] { DefaultCoefficients, DefaultCoefficients, DefaultCoefficients });
            DefaultShape.BalanceBody();
            //////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #3
0
            static void InitShape()
            {
                Coefficients DefaultCoefficients = TimeWarp.Coefficients;

                Vector2D[] mainhullvertecies = new Vector2D[]
                {
                    //new Vector2D(60,0),
                    new Vector2D(60, 8),
                    new Vector2D(0, 15),
                    new Vector2D(-40, 15),
                    new Vector2D(-40, -15),
                    new Vector2D(0, -15),
                    new Vector2D(60, -8)
                };
                List <Coefficients> ceos = new List <Coefficients>();
                List <IGeometry2D>  goes = new List <IGeometry2D>();

                ceos.Add(DefaultCoefficients);
                goes.Add(new Polygon2D(ALVector2D.Zero, mainhullvertecies));
                float width = 70;

                for (int pos = -30; pos < 60; pos += 20)
                {
                    width -= 5;
                    ceos.Add(DefaultCoefficients);
                    goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(pos, 0)), Polygon2D.FromRectangle(width, 10)));
                }

                DefaultShape = new RigidBodyTemplate(9, 947.32712172484457f, goes.ToArray(), ceos.ToArray());
                DefaultShape.BalanceBody();
                ////DefaultShape.CalcInertiaMultiplier(.1f);
            }
コード例 #4
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();

            Vector2D[] engineconevertecies = new Vector2D[]
            {
                new Vector2D(-50, 10),
                new Vector2D(-100, 20),
                new Vector2D(-100, -20),
                new Vector2D(-50, -10)
            };
            Vector2D offset = Polygon2D.CalcCentroid(engineconevertecies);

            //engineconevertecies = Vector2D.Translate( -offset,engineconevertecies);

            OperationHelper.ArrayRefOp <Vector2D, Vector2D, Vector2D>(
                engineconevertecies,
                ref offset,
                engineconevertecies,
                Vector2D.Subtract);

            goes.Add(new Polygon2D(ALVector2D.Zero, Polygon2D.FromRectangle(20, 150)));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(-100, 0)), Polygon2D.FromNumberofSidesAndRadius(10, 20)));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(0, offset), engineconevertecies));
            coes.Add(DefaultCoefficients);
            DefaultShape = new RigidBodyTemplate(18, 3383.9114375372737f, goes.ToArray(), coes.ToArray());
            DefaultShape.BalanceBody();
            ////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #5
0
        static void InitShape()
        {
            Coefficients DefaultCoefficients = TimeWarp.Coefficients;

            Vector2D[] Pod1p =
                new Vector2D[] {
                new Vector2D(50, -15),
                new Vector2D(80, 15),
                new Vector2D(-50, 15),
                new Vector2D(-50, -15)
            };
            Vector2D[] Pod2p =
                new Vector2D[] {
                new Vector2D(-50, -15),
                new Vector2D(80, -15),
                new Vector2D(50, 15),
                new Vector2D(-50, 15)
            };
            Vector2D[] bridgep =
                new Vector2D[] {
                new Vector2D(-35, 20),
                new Vector2D(-35, -20),
                new Vector2D(-22, -44),
                new Vector2D(-10, -50),
                new Vector2D(20, -50),
                new Vector2D(20, 50),
                new Vector2D(-10, 50),
                new Vector2D(-22, 44)
            };


            Vector2D[]    mainhullp = Polygon2D.FromRectangle(50, 150);
            Vector2D[]    subhullp  = Polygon2D.FromRectangle(100, 30);
            IGeometry2D[] geometry  = new IGeometry2D[5];


            geometry[0] = new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-10, 0)), subhullp);
            geometry[1] = new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(0, 50)), Pod1p);
            geometry[2] = new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(0, -50)), Pod2p);
            geometry[3] = new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(0, 0)), mainhullp);
            geometry[4] = new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(90, 0)), bridgep);

            Coefficients[] coefficients = new Coefficients[5];
            for (int pos = 0; pos < 5; ++pos)
            {
                coefficients[pos] = DefaultCoefficients;
            }

            DefaultShape = new RigidBodyTemplate(20, 3907.8407737525167f, geometry, coefficients);
            DefaultShape.BalanceBody();
            //////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #6
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();

            Vector2D[] pods = Polygon2D.FromRectangle(10, 70);


            Vector2D[] leftWingvertecies = new Vector2D[]
            {
                new Vector2D(25, 20),
                new Vector2D(-30, 20),
                new Vector2D(-40, -50),
                new Vector2D(-5, -50)
            };
            Vector2D[] RightWingvertecies = new Vector2D[]
            {
                new Vector2D(-5, 50),
                new Vector2D(-40, 50),
                new Vector2D(-30, -20),
                new Vector2D(25, -20)
            };
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(-10, -30)), leftWingvertecies));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(-10, 30)), RightWingvertecies));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-35, 75)), pods));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-35, -75)), pods));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(20, 0)), Polygon2D.FromRectangle(20, 120)));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(90, 0)), Polygon2D.FromNumberofSidesAndRadius(5, 25)));
            coes.Add(DefaultCoefficients);


            DefaultShape = new RigidBodyTemplate(18, 3923.7657051329197f, goes.ToArray(), coes.ToArray());
            DefaultShape.BalanceBody();

            //////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #7
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();

            Vector2D[] pods      = Polygon2D.FromRectangle(20, 70);
            Vector2D[] mainhullp = Polygon2D.FromRectangle(30, 140);
            Vector2D[] subhullp  = Polygon2D.FromRectangle(40, 20);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI + .7f, new Vector2D(-35, 22)), subhullp));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI - .7f, new Vector2D(-35, -22)), subhullp));
            coes.Add(DefaultCoefficients);



            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-50, 35)), pods));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-50, -35)), pods));
            coes.Add(DefaultCoefficients);



            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(95, 0)), Polygon2D.FromNumberofSidesAndRadius(4, 25)));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(15f, 0)), mainhullp));
            coes.Add(DefaultCoefficients);



            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(30, 0)), Polygon2D.FromRectangle(80, 50)));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(120, 0)), Polygon2D.FromRectangle(50, 50)));
            coes.Add(DefaultCoefficients);


            DefaultShape = new RigidBodyTemplate(18, 4077.711f, goes.ToArray(), coes.ToArray());
            DefaultShape.BalanceBody();

            //DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #8
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();

            Vector2D[] mainhullvertecies = new Vector2D[]
            {
                new Vector2D(40, 0),
                //new Vector2D(20,10),
                //new Vector2D(20,15),
                new Vector2D(-8, 20),
                new Vector2D(-8, -20),
                //new Vector2D(20,-15),
                //new Vector2D(20,-10)
            };
            Vector2D[] leftWingvertecies = new Vector2D[]
            {
                new Vector2D(10, 20),
                new Vector2D(-30, 10),
                new Vector2D(0, -50),
                new Vector2D(40, -80)
            };
            int length = leftWingvertecies.Length;

            Vector2D[] RightWingvertecies = new Vector2D[]
            {
                new Vector2D(40, 80),
                new Vector2D(0, 50),
                new Vector2D(-30, -10),
                new Vector2D(10, -20)
            };

            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(-10, -20)), leftWingvertecies));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(-10, 20)), RightWingvertecies));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(30, 0)), Polygon2D.FromRectangle(20, 120)));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(80, 0)), mainhullvertecies));
            coes.Add(DefaultCoefficients);
            DefaultShape = new RigidBodyTemplate(11, 1129.1553811562187f, goes.ToArray(), coes.ToArray());
            DefaultShape.BalanceBody();
            //////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #9
0
        static void InitShape()
        {
            Coefficients DefaultCoefficients = TimeWarp.Coefficients;

            IGeometry2D mainhull = new Polygon2D(ALVector2D.Zero, Polygon2D.FromRectangle(10, 120));

            IGeometry2D sphereone    = new Polygon2D(new ALVector2D(0, new Vector2D(-60, 0)), Polygon2D.FromNumberofSidesAndRadius(10, 25));
            IGeometry2D spheretwo    = new Polygon2D(new ALVector2D(0, new Vector2D(60, 0)), Polygon2D.FromNumberofSidesAndRadius(10, 25));
            IGeometry2D subsphereone = new Polygon2D(new ALVector2D(0, new Vector2D(0, 30)), Polygon2D.FromNumberofSidesAndRadius(10, 10));
            IGeometry2D subspheretwo = new Polygon2D(new ALVector2D(0, new Vector2D(0, -30)), Polygon2D.FromNumberofSidesAndRadius(10, 10));

            DefaultShape = new RigidBodyTemplate(
                8,
                2635.9963064342355f,
                new IGeometry2D[] { sphereone, spheretwo, subsphereone, subspheretwo, mainhull },
                new Coefficients[] { DefaultCoefficients, DefaultCoefficients, DefaultCoefficients, DefaultCoefficients, DefaultCoefficients });
            DefaultShape.BalanceBody();
            ////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #10
0
        protected override RigidBodyTemplate GetShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();

            Vector2D[] pods      = Polygon2D.FromRectangle(20, 70);
            Vector2D[] mainhullp = Polygon2D.FromRectangle(30, 150);
            Vector2D[] subhullp  = Polygon2D.FromRectangle(40, 20);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI + .7f, new Vector2D(-35, 22)), subhullp));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI + .7f, new Vector2D(35, 22)), subhullp));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI - .7f, new Vector2D(-35, -22)), subhullp));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI - .7f, new Vector2D(35, -22)), subhullp));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(40, 40)), pods));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(40, -40)), pods));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-40, 40)), pods));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-40, -40)), pods));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(20, 0)), mainhullp));
            coes.Add(DefaultCoefficients);

            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(120, 0)), Polygon2D.FromNumberofSidesAndRadius(10, 35)));
            coes.Add(DefaultCoefficients);


            RigidBodyTemplate DefaultShape = new RigidBodyTemplate(18, 3923.7657051329197f, goes.ToArray(), coes.ToArray());

            DefaultShape.BalanceBody();
            return(DefaultShape);
        }
コード例 #11
0
        static void InitShape()
        {
            Coefficients DefaultCoefficients = TimeWarp.Coefficients;
            IGeometry2D  mainhull            = new Polygon2D(new ALVector2D(0, new Vector2D(35, 0)), Polygon2D.FromRectangle(50, 20));
            IGeometry2D  engine = new Polygon2D(ALVector2D.Zero, Polygon2D.FromNumberofSidesAndRadius(10, 40));

            DefaultShape = new RigidBodyTemplate(18, 1239.4170508254688f, new IGeometry2D[] { mainhull, engine, }, new Coefficients[] { DefaultCoefficients, DefaultCoefficients });
            DefaultShape.BalanceBody();
            ////DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #12
0
        static void InitShape()
        {
            Coefficients DefaultCoefficients = TimeWarp.Coefficients;

            IGeometry2D mainhull = new Polygon2D(new ALVector2D(0, new Vector2D(40, 0)), Polygon2D.FromRectangle(10, 50));
            IGeometry2D engine   = new Circle2D(20, new Vector2D(0, 0));

            DefaultShape = new RigidBodyTemplate(2, 1935.8061672698966f, new IGeometry2D[] { engine, mainhull }, new Coefficients[] { DefaultCoefficients, DefaultCoefficients });
            //DefaultShape.BalanceBody();
            //DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #13
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  goes = new List <IGeometry2D>();
            List <Coefficients> coes = new List <Coefficients>();


            Vector2D[] leftWingvertecies = new Vector2D[]
            {
                new Vector2D(20, -10),
                new Vector2D(5, 5),
                new Vector2D(-10, 5),
                new Vector2D(20, -30)
            };
            int length = leftWingvertecies.Length;

            Vector2D[] RightWingvertecies = new Vector2D[]
            {
                new Vector2D(20, 10),
                new Vector2D(20, 30),
                new Vector2D(-10, -5),
                new Vector2D(5, -5)
            };
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(15, -5)), leftWingvertecies));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(15, 5)), RightWingvertecies));
            coes.Add(DefaultCoefficients);


            Vector2D[] RightWingvertecies2 = (Vector2D[])RightWingvertecies.Clone();
            Vector2D[] leftWingvertecies2  = (Vector2D[])leftWingvertecies.Clone();
            for (int pos = RightWingvertecies2.Length - 1; pos > -1; --pos)
            {
                RightWingvertecies2[pos] *= .7f;
            }
            for (int pos = leftWingvertecies2.Length - 1; pos > -1; --pos)
            {
                leftWingvertecies2[pos] *= .7f;
            }
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-15, 5)), leftWingvertecies2));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-15, -5)), RightWingvertecies2));
            coes.Add(DefaultCoefficients);


            Vector2D[] RightWingvertecies3 = new Vector2D[]
            {
                new Vector2D(5, 5),
                new Vector2D(0, 7),
                new Vector2D(-15, 7),
                new Vector2D(-20, 5),
                new Vector2D(-10, -40),
                new Vector2D(0, -40)
            };
            Vector2D[] leftWingvertecies3 = new Vector2D[]
            {
                new Vector2D(0, 40),
                new Vector2D(-10, 40),
                new Vector2D(-20, -5),
                new Vector2D(-15, -7),
                new Vector2D(0, -7),
                new Vector2D(5, -5)
            };

            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-8, 40)), leftWingvertecies3));
            coes.Add(DefaultCoefficients);
            goes.Add(new Polygon2D(new ALVector2D(MathHelper.PI, new Vector2D(-8, -40)), RightWingvertecies3));
            coes.Add(DefaultCoefficients);



            goes.Add(new Polygon2D(new ALVector2D(0, new Vector2D(0, 0)), Polygon2D.FromRectangle(7, 50)));
            coes.Add(DefaultCoefficients);
            DefaultShape = new RigidBodyTemplate(7, 809.028931f, goes.ToArray(), coes.ToArray());
            DefaultShape.BalanceBody();
            //DefaultShape.CalcInertiaMultiplier(.1f);
        }
コード例 #14
0
 static void InitShape()
 {
     DefaultShape = new RigidBodyTemplate(MassInertia.FromRectangle(.01f, 5, 10), new IGeometry2D[] { new Polygon2D(ALVector2D.Zero, Polygon2D.FromRectangle(5, 10)) }, new Coefficients[] { TimeWarp.Coefficients });
 }
コード例 #15
0
        static void InitShape()
        {
            Coefficients        DefaultCoefficients = TimeWarp.Coefficients;
            List <IGeometry2D>  geometries          = new List <IGeometry2D>();
            List <Coefficients> coefficients        = new List <Coefficients>();

            float da        = MathHelper.PI * 2 / 5;
            float podlength = 50;

            for (float angle = 0; angle < MathHelper.PI * 2; angle += da)
            {
                Vector2D direction = Vector2D.Rotate(angle - MathHelper.PI, Vector2D.XAxis);
                if (angle == 0)
                {
                    geometries.Add(new Polygon2D(new ALVector2D(angle - MathHelper.PI, direction * .3f * podlength), Polygon2D.FromRectangle(9, podlength * .6f)));
                    geometries.Add(new Polygon2D(new ALVector2D(0, direction * podlength * .6f), Polygon2D.FromNumberofSidesAndRadius(8, 10)));
                }
                else
                {
                    geometries.Add(new Polygon2D(new ALVector2D(angle - MathHelper.PI, direction * .5f * podlength), Polygon2D.FromRectangle(9, podlength)));
                    geometries.Add(new Polygon2D(new ALVector2D(0, direction * podlength), Polygon2D.FromNumberofSidesAndRadius(8, 10)));
                }
                coefficients.Add(DefaultCoefficients);
                coefficients.Add(DefaultCoefficients);
            }
            geometries.Add(new Polygon2D(ALVector2D.Zero, Polygon2D.FromNumberofSidesAndRadius(10, 15)));
            coefficients.Add(DefaultCoefficients);
            DefaultShape = new RigidBodyTemplate(16, 1569.670392957858f, geometries.ToArray(), coefficients.ToArray());
            DefaultShape.BalanceBody();
            // ////DefaultShape.CalcInertiaMultiplier(.1f);
        }