/// <summary> /// 所有的世界坐标 /// </summary> /// <returns></returns> public static Vector3[] CornerPoints(Bounds bounds) { Vector3[] pts = new Vector3[8]; pts[0] = bounds.FrontTopLeft(); pts[1] = bounds.FrontTopRight(); pts[2] = bounds.FrontBottomLeft(); pts[3] = bounds.FrontBottomRight(); pts[4] = bounds.BackTopLeft(); pts[5] = bounds.BackTopRight(); pts[6] = bounds.BackBottomLeft(); pts[7] = bounds.BackBottomRight(); return(pts); }