AttachEdge() public static method

public static AttachEdge ( Vector2 start, Vector2 end, Body body, object userData = null ) : Fixture
start Vector2
end Vector2
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture
コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: BodyFactory.cs プロジェクト: migreva/CocoBounce
        public static FSBody CreateEdge(FSWorld world, FVector2 start, FVector2 end, object userData)
        {
            FSBody body = CreateBody(world);

            FixtureFactory.AttachEdge(start, end, body, userData);
            return(body);
        }
コード例 #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);
        }
コード例 #5
0
        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);
        }