C# Class Nez.Farseer.Farseer.LinkFactory

Datei anzeigen Open project: prime31/Nez

Public Methods

Method Description
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 a chain.

Method Details

createChain() public static method

Creates a 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 The world.
start Microsoft.Xna.Framework.Vector2 The start.
end Microsoft.Xna.Framework.Vector2 The end.
linkWidth float The width.
linkHeight float The height.
numberOfLinks int The number of links.
linkDensity float The 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
fixEnd bool
return List