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

clone() public method

public clone ( ) : Shape
return Shape
		public override Shape clone()
		{
			var clone = new ChainShape();
			clone.shapeType = shapeType;
			clone._density = _density;
			clone._radius = _radius;
			clone.prevVertex = _prevVertex;
			clone.nextVertex = _nextVertex;
			clone._hasNextVertex = _hasNextVertex;
			clone._hasPrevVertex = _hasPrevVertex;
			clone.vertices = new Vertices( vertices );
			clone.massData = massData;
			return clone;
		}