BoundingBoxHelper.GetIndexOfForwardFace(Vector3) Method

Definition

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

Applies to