private bool DealBoundsIntersection(Bounds a, Bounds b, bool ifCreateXjBounds, List <Bounds> xjBoundsList)//是否创建对应相交长方体 { var minP = ObjManager.GetMaxVector3(a.min, b.min); var maxP = ObjManager.GetMinVector3(a.max, b.max); if (!Vector3xydy(minP, maxP)) { return(false); } if (ifCreateXjBounds) { xjBoundsList.Add(new Bounds((minP + maxP) / 2, maxP - minP));//往xjBoundsList添加一个相交长方体 } return(true); }