Пример #1
0
        public Body CreateCompoundPolygon(List <Vertices> list, float density, Vector2 position = new Vector2(), float rotation = 0, BodyType bodyType = BodyType.Static)
        {
            //We create a single body
            Body body = CreateBody(position, rotation, bodyType);

            body.CreateCompoundPolygon(list, density);
            return(body);
        }