SetActorRotation setting wrong rotation

When I’m trying to set the yaw rotation to 90 degrees on my Pawn it rotates but set it to -24.591549 ° instead of 90 any ideas?

SetActorRotation(FRotator(0, 90, 0));

Yaw is mapped to the Z component (see documentation), not the Y component.

Also, there are some subtleties involved between view rotation and pawn rotation. So how exactly are you measuring your observation? Providing some more details will help to figure out what’s going on.

In C++ it’s the second input for some reason. I check it’s rotation when playing by clicking it in the World Outliner