C# 클래스 Nez.Farseer.Farseer.LinkFactory

파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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.

메소드 상세

createChain() 공개 정적인 메소드

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
리턴 List