Esempio n. 1
0
        static void InitShape()
        {
            Coefficients coe  = TimeWarp.Coefficients;
            IGeometry2D  hull = new Polygon2D(ALVector2D.Zero, Polygon2D.FromSquare(10));

            DefaultShape = new RigidBodyTemplate(MassInertia.FromSquare(.01f, 10), new IGeometry2D[] { hull }, new Coefficients[] { coe });
            DefaultShape.BalanceBody();
        }