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

Показать файл Открыть проект

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

Метод Описание
CreateChain ( World world, Vector2 start, Vector2 end, float linkWidth, float linkHeight, int numberOfLinks, float linkDensity, bool attachRopeJoint, bool fixStart = false, bool fixEnd = false ) : List

Creates the chain.

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

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

Creates the chain.
public static CreateChain ( World world, Vector2 start, Vector2 end, float linkWidth, float linkHeight, int numberOfLinks, float linkDensity, bool attachRopeJoint, bool fixStart = false, bool fixEnd = false ) : List
world FarseerPhysics.Dynamics.World World.
start Microsoft.Xna.Framework.Vector2 Start.
end Microsoft.Xna.Framework.Vector2 End.
linkWidth float Link width.
linkHeight float Link height.
numberOfLinks int Number of links.
linkDensity float Link density.
attachRopeJoint bool Creates a rope joint between start and end. This enforces the length of the rope. Said in another way: it makes the rope less bouncy.
fixStart bool If set to true fix start.
fixEnd bool If set to true fix end.
Результат List