AttachChainShape() публичный статический Метод

public static AttachChainShape ( Vertices vertices, Body body, object userData = null ) : Fixture
vertices Vertices
body FarseerPhysics.Dynamics.Body
userData object
Результат FarseerPhysics.Dynamics.Fixture
Пример #1
0
        public static Body CreateChainShape(World world, Vertices vertices, Vector2 position, object userData = null)
        {
            Body body = CreateBody(world, position);

            FixtureFactory.AttachChainShape(vertices, body, userData);
            return(body);
        }
Пример #2
0
        public static Body CreateChainShape(World world, Vertices vertices, System.Numerics.Vector2 position = new System.Numerics.Vector2(),
                                            object userData = null)
        {
            var body = CreateBody(world, position);

            FixtureFactory.AttachChainShape(vertices, body, userData);
            return(body);
        }