MathUtilities.GetDirection(Quaternion) 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.
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.