C# Class FarseerPhysics.Factories.FixtureFactory

An easy to use factory for creating bodies
Mostra file Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
AttachChainShape ( Vertices vertices, Body body, object userData = null ) : Fixture
AttachCircle ( float radius, float density, Body body, Vector2 offset, object userData = null ) : Fixture
AttachCircle ( float radius, float density, Body body, object userData = null ) : Fixture
AttachCompoundPolygon ( List list, float density, Body body, object userData = null ) : List
AttachEdge ( Vector2 start, Vector2 end, Body body, object userData = null ) : Fixture
AttachEllipse ( float xRadius, float yRadius, int edges, float density, Body body, object userData = null ) : Fixture
AttachLineArc ( float radians, int sides, float radius, bool closed, Body body ) : Fixture
AttachLoopShape ( Vertices vertices, Body body, object userData = null ) : Fixture
AttachPolygon ( Vertices vertices, float density, Body body, object userData = null ) : Fixture
AttachRectangle ( float width, float height, float density, Vector2 offset, Body body, object userData = null ) : Fixture
AttachSolidArc ( float density, float radians, int sides, float radius, Body body ) : List

Method Details

AttachChainShape() public static method

public static AttachChainShape ( Vertices vertices, Body body, object userData = null ) : Fixture
vertices Vertices
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture

AttachCircle() public static method

public static AttachCircle ( float radius, float density, Body body, Vector2 offset, object userData = null ) : Fixture
radius float
density float
body FarseerPhysics.Dynamics.Body
offset Vector2
userData object
return FarseerPhysics.Dynamics.Fixture

AttachCircle() public static method

public static AttachCircle ( float radius, float density, Body body, object userData = null ) : Fixture
radius float
density float
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture

AttachCompoundPolygon() public static method

public static AttachCompoundPolygon ( List list, float density, Body body, object userData = null ) : List
list List
density float
body FarseerPhysics.Dynamics.Body
userData object
return List

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

AttachEllipse() public static method

public static AttachEllipse ( float xRadius, float yRadius, int edges, float density, Body body, object userData = null ) : Fixture
xRadius float
yRadius float
edges int
density float
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture

AttachLineArc() public static method

public static AttachLineArc ( float radians, int sides, float radius, bool closed, Body body ) : Fixture
radians float
sides int
radius float
closed bool
body FarseerPhysics.Dynamics.Body
return FarseerPhysics.Dynamics.Fixture

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

AttachPolygon() public static method

public static AttachPolygon ( Vertices vertices, float density, Body body, object userData = null ) : Fixture
vertices Vertices
density float
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture

AttachRectangle() public static method

public static AttachRectangle ( float width, float height, float density, Vector2 offset, Body body, object userData = null ) : Fixture
width float
height float
density float
offset Vector2
body FarseerPhysics.Dynamics.Body
userData object
return FarseerPhysics.Dynamics.Fixture

AttachSolidArc() public static method

public static AttachSolidArc ( float density, float radians, int sides, float radius, Body body ) : List
density float
radians float
sides int
radius float
body FarseerPhysics.Dynamics.Body
return List