using FarseerPhysics.Dynamics;
using Vortex.Drawing;

namespace FarseerPhysics.Factories
{
    /// <summary>
    /// An easy to use factory for creating bodies
    /// </summary>
    public static class BodyFactory
    {
        public static Body CreateBody(World world)
        {
            Body body = world.CreateBody();
            return body;
        }

        public static Body CreateBody(World world, Vector2 position)
        {
            Body body = world.CreateBody();
            body.Position = position;
            return body;
        }
    }
}