Editar

Partilhar via


MathUtilities.GetDirection(Quaternion) Method

Definition

Calculates the direction vector from a rotation.

public:
 static UnityEngine::Vector3 GetDirection(UnityEngine::Quaternion rotation);
public static UnityEngine.Vector3 GetDirection (UnityEngine.Quaternion rotation);
static member GetDirection : UnityEngine.Quaternion -> UnityEngine.Vector3
Public Shared Function GetDirection (rotation As Quaternion) As Vector3

Parameters

rotation
UnityEngine.Quaternion

Quaternion representing the rotation of the object.

Returns

UnityEngine.Vector3

Normalized Vector3 representing the direction vector.

Applies to