AttachEdge() public static méthode

public static AttachEdge ( Vector2 start, Vector2 end, Body body, object userData = null ) : Fixture
start Vector2
end Vector2
body FarseerPhysics.Dynamics.Body
userData object
Résultat FarseerPhysics.Dynamics.Fixture
Exemple #1
0
        public static Body CreateEdge(World world, Vector2 start, Vector2 end, object userData = null)
        {
            Body body = CreateBody(world);

            FixtureFactory.AttachEdge(start, end, body, userData);
            return(body);
        }
Exemple #2
0
        public static Body CreateEdge(World world, Vector2 start, Vector2 end, DebugMaterial userData)
        {
            Body body = CreateBody(world);

            FixtureFactory.AttachEdge(start, end, body, userData);
            return(body);
        }
Exemple #3
0
        public static FSBody CreateEdge(FSWorld world, FVector2 start, FVector2 end, object userData)
        {
            FSBody body = CreateBody(world);

            FixtureFactory.AttachEdge(start, end, body, userData);
            return(body);
        }
Exemple #4
0
        public static Body CreateEdge(World world, Vector2 start, Vector2 end, PressPlay.FFWD.Components.Collider userData)
        {
            Body body = CreateBody(world);

            FixtureFactory.AttachEdge(start, end, body, userData);
            return(body);
        }
        public static Body CreateEdge(World world, Vector2 start, Vector2 end, object userData)
        {
            Body body = CreateBody(world);

            body.Geometry = BodyGeometryType.Edge;
            FixtureFactory.AttachEdge(start, end, body, userData);
            return(body);
        }