BoundingBoxHelper.GetFaceCentroid(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This function returns the centroid of a face of the bounding cube of an object specified by the index parameter;
public:
UnityEngine::Vector3 GetFaceCentroid(int index);
public UnityEngine.Vector3 GetFaceCentroid (int index);
member this.GetFaceCentroid : int -> UnityEngine.Vector3
Public Function GetFaceCentroid (index As Integer) As Vector3
Parameters
- index
- Int32
an index into the list of faces of a boundingcube. 0-5
Returns
UnityEngine.Vector3