C# Class FarseerPhysics.Factories.BodyFactory

Mostrar archivo Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
CreateBody ( World world, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateBreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : BreakableBody
CreateBreakableBody ( World world, Vertices vertices, float density, Vector2 position = newVector2(), float rotation ) : BreakableBody
CreateCapsule ( World world, float height, float endRadius, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateCapsule ( World world, float height, float topRadius, int topEdges, float bottomRadius, int bottomEdges, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateChainShape ( World world, Vertices vertices, Vector2 position = newVector2(), object userData = null ) : Body
CreateCircle ( World world, float radius, float density, Vector2 position = newVector2(), BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateCompoundPolygon ( World world, List list, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateEdge ( World world, Vector2 start, Vector2 end, object userData = null ) : Body
CreateEllipse ( World world, float xRadius, float yRadius, int edges, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateGear ( World world, float radius, int numberOfTeeth, float tipPercentage, float toothHeight, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateLineArc ( World world, float radians, int sides, float radius, bool closed = false, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static ) : Body
CreateLoopShape ( World world, Vertices vertices, Vector2 position = newVector2(), object userData = null ) : Body
CreatePolygon ( World world, Vertices vertices, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateRectangle ( World world, float width, float height, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateRoundedRectangle ( World world, float width, float height, float xRadius, float yRadius, int segments, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
CreateSolidArc ( World world, float density, float radians, int sides, float radius, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static ) : Body

Method Details

CreateBody() public static method

public static CreateBody ( World world, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateBreakableBody() public static method

public static CreateBreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : BreakableBody
world FarseerPhysics.Dynamics.World
shapes IEnumerable
position Vector2
rotation float
return FarseerPhysics.Dynamics.BreakableBody

CreateBreakableBody() public static method

public static CreateBreakableBody ( World world, Vertices vertices, float density, Vector2 position = newVector2(), float rotation ) : BreakableBody
world FarseerPhysics.Dynamics.World
vertices Vertices
density float
position Vector2
rotation float
return FarseerPhysics.Dynamics.BreakableBody

CreateCapsule() public static method

public static CreateCapsule ( World world, float height, float endRadius, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
height float
endRadius float
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateCapsule() public static method

public static CreateCapsule ( World world, float height, float topRadius, int topEdges, float bottomRadius, int bottomEdges, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
height float
topRadius float
topEdges int
bottomRadius float
bottomEdges int
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateChainShape() public static method

public static CreateChainShape ( World world, Vertices vertices, Vector2 position = newVector2(), object userData = null ) : Body
world FarseerPhysics.Dynamics.World
vertices Vertices
position Vector2
userData object
return FarseerPhysics.Dynamics.Body

CreateCircle() public static method

public static CreateCircle ( World world, float radius, float density, Vector2 position = newVector2(), BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
radius float
density float
position Vector2
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateCompoundPolygon() public static method

public static CreateCompoundPolygon ( World world, List list, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
list List
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateEdge() public static method

public static CreateEdge ( World world, Vector2 start, Vector2 end, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
start Vector2
end Vector2
userData object
return FarseerPhysics.Dynamics.Body

CreateEllipse() public static method

public static CreateEllipse ( World world, float xRadius, float yRadius, int edges, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
xRadius float
yRadius float
edges int
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateGear() public static method

public static CreateGear ( World world, float radius, int numberOfTeeth, float tipPercentage, float toothHeight, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
radius float
numberOfTeeth int
tipPercentage float
toothHeight float
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateLineArc() public static method

public static CreateLineArc ( World world, float radians, int sides, float radius, bool closed = false, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static ) : Body
world FarseerPhysics.Dynamics.World
radians float
sides int
radius float
closed bool
position Vector2
rotation float
bodyType BodyType
return FarseerPhysics.Dynamics.Body

CreateLoopShape() public static method

public static CreateLoopShape ( World world, Vertices vertices, Vector2 position = newVector2(), object userData = null ) : Body
world FarseerPhysics.Dynamics.World
vertices Vertices
position Vector2
userData object
return FarseerPhysics.Dynamics.Body

CreatePolygon() public static method

public static CreatePolygon ( World world, Vertices vertices, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
vertices Vertices
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateRectangle() public static method

public static CreateRectangle ( World world, float width, float height, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
width float
height float
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateRoundedRectangle() public static method

public static CreateRoundedRectangle ( World world, float width, float height, float xRadius, float yRadius, int segments, float density, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
width float
height float
xRadius float
yRadius float
segments int
density float
position Vector2
rotation float
bodyType BodyType
userData object
return FarseerPhysics.Dynamics.Body

CreateSolidArc() public static method

public static CreateSolidArc ( World world, float density, float radians, int sides, float radius, Vector2 position = newVector2(), float rotation, BodyType bodyType = BodyType.Static ) : Body
world FarseerPhysics.Dynamics.World
density float
radians float
sides int
radius float
position Vector2
rotation float
bodyType BodyType
return FarseerPhysics.Dynamics.Body