{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Make Rotator in Unreal Engine 5 C++

The Blueprint Make Rotator node maps to the FRotator(Pitch, Yaw, Roll) constructor in C++, building a rotation from three float angles.

Blueprint node & C++ equivalent

Make Rotator Blueprint node and its C++ equivalent in Unreal Engine 5
The “Make Rotator” Blueprint node.
C++
float Pitch;
float Yaw;
float Roll;

FRotator ExampleRotator(Pitch, Yaw, Roll);

What does the Make Rotator node do?

Make Rotator combines Pitch, Yaw, and Roll angles into a single FRotator. In C++ you construct it as FRotator ExampleRotator(Pitch, Yaw, Roll);. The order matters: the constructor takes Pitch first, then Yaw, then Roll, matching the Blueprint pin layout.

Common mistakes

A frequent error is passing the angles in the wrong order, since people expect Roll, Pitch, Yaw. The FRotator constructor is Pitch, Yaw, Roll. For convenience, FRotator::ZeroRotator gives an identity rotation, and you can derive a rotator from a direction with FRotationMatrix::MakeFromX or UKismetMathLibrary::MakeRotFromX.

Frequently asked questions

How do I make a rotator in UE5 C++?+

Use FRotator ExampleRotator(Pitch, Yaw, Roll);, the C++ equivalent of the Make Rotator Blueprint node.

What is the parameter order of the FRotator constructor?+

The three-argument FRotator constructor takes Pitch, then Yaw, then Roll, in that order.

Related Math nodes

View all Math nodes →