Пример #1
0
        public static Body createCompoundPolygon(World world, List <Vertices> list, float density, Vector2 position = new Vector2(), float rotation = 0, BodyType bodyType = BodyType.Static, object userData = null)
        {
            //We create a single body
            var polygonBody = createBody(world, position, rotation, bodyType);

            FixtureFactory.attachCompoundPolygon(list, density, polygonBody, userData);
            return(polygonBody);
        }