Unreal Engine 5 · Blueprint → C++
Get Forward Vector from Rotator in Unreal Engine 5 C++UE Docs
Get Forward Vector from a Rotator maps to Rotation.Vector() in Unreal Engine 5 C++, with FRotationMatrix(Rotation).GetUnitAxis(EAxis::Y) giving the right vector.
Blueprint node & C++ equivalent
FVector Forward = Rotation.Vector();
// or per-axis: FRotationMatrix(Rotation).GetUnitAxis(EAxis::Y) for RightWhat does the Get Forward Vector node do?
This node converts an FRotator into the unit direction it faces, the forward (X) axis after rotation. It is the standard way to turn an orientation into a movement or aim direction.
Because the result is already normalized, it can be scaled by speed or trace length without further processing.
The C++ equivalent
Call Rotation.Vector() on any FRotator. It returns the rotated forward FVector, equivalent to the Blueprint Get Forward Vector node fed by a rotator.
For the right or up axes, build an FRotationMatrix(Rotation) and call GetUnitAxis(EAxis::Y) for right or EAxis::Z for up. EAxis::X returns the same forward vector as Vector().
When to use it in C++
Use Rotation.Vector() when you have a control rotation or actor rotation and need the direction it points. To project movement onto the ground plane, zero the Z component afterward and re-normalize so the character does not drift vertically.
Frequently asked questions
How do you get a forward vector from a rotator in UE5 C++?+
Call Rotation.Vector() on the FRotator. It returns the normalized forward (X) direction the rotation faces.
How do you get the right vector from a rotator?+
Use FRotationMatrix(Rotation).GetUnitAxis(EAxis::Y) for the right vector, or EAxis::Z for the up vector.