Universe.Physics.BulletSPlugin.ShapeInfoInfo.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            StringBuilder buff = new StringBuilder();
            // buff.Append("ShapeInfo=<");
            buff.Append("<");
            if (Vertices > 0)
            {
                buff.Append("verts=");
                buff.Append(Vertices.ToString());
            }

            if (Vertices > 0 && HullCount > 0) buff.Append(",");

            if (HullCount > 0)
            {
                buff.Append("nHulls=");
                buff.Append(HullCount.ToString());
                buff.Append(",");
                buff.Append("hullVerts=");
                for (int ii = 0; ii < HullCount; ii++)
                {
                    if (ii != 0) buff.Append(",");
                    buff.Append(GetVerticesPerHull(ii).ToString());
                }
            }
            buff.Append(">");
            return buff.ToString();
        }
    }