Sorts a collection of vertices into a collection that contains Outer vertices that define an exterior boundary and Inner vertices that define an interior
boundary.
public static List<Vector3> getInnerOuterVerticesList(
UnityEngine.Vector3[]
)
Parameters
- _verticesArray
- An array of 8 vertices expressed as Vector3 points in worldspace.
Return Value
A
List of eight
Vector3 points in worldspace, where the first four values represent the Outer corners of the boundary rectangle (starting from the top-left/player forward-left corner and proceeding clockwise) and the second four values represent the Inner corners of the boundary rectangle.