How do i rotate a FindLookAtRotation results?

I use it for a character’s head to look at the player, at the moment i have it with the X axis toward the player, but the character head’s forward axis is Y.
I’v tried “combine rotators” and adding it 90 or -90 to YAW and some more variations, each one failed in different way, what is the right way to do it?

Use FRotationMatrix for it.



FRotator LookAtRotation= FindLookAtStuff(); //pseudo LookAt Direction

//Returns a vector perpendicular to LookAtRotation rotated around the Z-Axis.
FVector LookAtRightDirection = FRotationMatrix(LookAtRotation).GetScaledAxis(EAxis::Y);


Thanks! :slight_smile: