C# Class Nez.Farseer.Farseer.LinkFactory

Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode 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 méthode

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
Résultat List