Пример #1
0
        public static Body createPolygon(World world, Vertices vertices, float density, Vector2 position = new Vector2(), float rotation = 0, BodyType bodyType = BodyType.Static, object userData = null)
        {
            var body = createBody(world, position, rotation, bodyType);

            FixtureFactory.attachPolygon(vertices, density, body, userData);
            return(body);
        }