C# 클래스 FarseerPhysics.Factories.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 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