BoundingBoxHelper.GetIndexOfForwardFace(Vector3) 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 gets the index of the face of the bounding cube that is most facing the lookAtPoint. This could be the headPosition or camera position if the face that was facing the view is desired.
public:
int GetIndexOfForwardFace(UnityEngine::Vector3 lookAtPoint);
public int GetIndexOfForwardFace (UnityEngine.Vector3 lookAtPoint);
member this.GetIndexOfForwardFace : UnityEngine.Vector3 -> int
Public Function GetIndexOfForwardFace (lookAtPoint As Vector3) As Integer
Parameters
- lookAtPoint
- UnityEngine.Vector3
the world coordinate to test which face is desired
Returns
an integer representing the index of the bounding box faces