FarseerPhysics.Collision.Shapes.ChainShape.ChainShape C# (CSharp) Method

ChainShape() public method

Create a new chainshape from the vertices.
public ChainShape ( Vertices vertices, bool createLoop = false ) : System.Diagnostics
vertices Vertices The vertices to use. Must contain 2 or more vertices.
createLoop bool Set to true to create a closed loop. It connects the first vertice to the last, and automatically adjusts connectivity to create smooth collisions along the chain.
return System.Diagnostics
		public ChainShape( Vertices vertices, bool createLoop = false ) : base( 0 )
		{
			shapeType = ShapeType.Chain;
			_radius = Settings.polygonRadius;

			setVertices( vertices, createLoop );
		}

Same methods

ChainShape::ChainShape ( ) : System.Diagnostics