C# Класс FarseerPhysics.Factories.BodyFactory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

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

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
Результат FarseerPhysics.Dynamics.Body

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

public static CreateBreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : BreakableBody
world FarseerPhysics.Dynamics.World
shapes IEnumerable
position Vector2
rotation float
Результат FarseerPhysics.Dynamics.BreakableBody

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

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
Результат FarseerPhysics.Dynamics.BreakableBody

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

public static CreateChainShape ( World world, Vertices vertices, Vector2 position = newVector2(), object userData = null ) : Body
world FarseerPhysics.Dynamics.World
vertices Vertices
position Vector2
userData object
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

public static CreateEdge ( World world, Vector2 start, Vector2 end, object userData = null ) : Body
world FarseerPhysics.Dynamics.World
start Vector2
end Vector2
userData object
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

public static CreateLoopShape ( World world, Vertices vertices, Vector2 position = newVector2(), object userData = null ) : Body
world FarseerPhysics.Dynamics.World
vertices Vertices
position Vector2
userData object
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body

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

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
Результат FarseerPhysics.Dynamics.Body