AttachLoopShape() public static method

public static AttachLoopShape ( Vertices vertices, Body body, object userData = null ) : Fixture
vertices Vertices
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture
Exemplo n.º 1
0
        public static Body CreateLoopShape(World world, Vertices vertices, Vector2 position, object userData = null)
        {
            Body body = CreateBody(world, position);

            FixtureFactory.AttachLoopShape(vertices, body, userData);
            return(body);
        }
Exemplo n.º 2
0
        public static Body CreateLoopShape(World world, Vertices vertices, System.Numerics.Vector2 position = new System.Numerics.Vector2(),
                                           object userData = null)
        {
            var body = CreateBody(world, position);

            FixtureFactory.AttachLoopShape(vertices, body, userData);
            return(body);
        }
Exemplo n.º 3
0
        public static Body CreateLoopShape(World world, Vertices vertices, Vector2 position,
                                           PressPlay.FFWD.Components.Collider userData)
        {
            Body body = CreateBody(world, position);

            FixtureFactory.AttachLoopShape(vertices, body, userData);
            return(body);
        }
Exemplo n.º 4
0
        public static Body CreateLoopShape(World world, Vertices vertices, Vector2 position,
                                           object userData)
        {
            Body body = CreateBody(world, position);

            body.Geometry = BodyGeometryType.LoopShape;
            FixtureFactory.AttachLoopShape(vertices, body, userData);
            return(body);
        }