To Quaterion (Vector4)

To Quaterion (Vector4)

Windows
MacOS
Linux

Return the Quaternion orientation corresponding to the direction in which the vector points. Similar to the FRotator version, returns a result without roll such that it preserves the up vector.

Note: If you don't care about preserving the up vector and just want the most direct rotation, you can use the faster 'FQuat::FindBetweenVectors(FVector::ForwardVector, YourVector)' or 'FQuat::FindBetweenNormals(...)' if you know the vector is of unit length.

Target is Kismet Math Library

To Quaterion (Vector4)
In Vec
Return Value

Inputs

In Vec
Vector 4 Structure (by ref)

Outputs

Return Value
Quat Structure

Quaternion from the Vector's direction, without any roll.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback