Box2D.Collision.Shapes.ChainShape.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : Shape
return Shape
        public override Shape Clone()
        {
            ChainShape clone = new ChainShape();
            clone.CreateChain(Vertices, Count);
            clone.m_prevVertex.Set(m_prevVertex);
            clone.m_nextVertex.Set(m_nextVertex);
            clone.HasPrevVertex = HasPrevVertex;
            clone.HasNextVertex = HasNextVertex;
            return clone;
        }