I’m a bit stumped and am hoping someone can point me in the right direction. I’m making a third person shooter, I’m trying to use GetBaseAimRotation() to determine the character’s yaw value, in order to drive an AimOffset. I’m not doing anything overly complex with it, just creating a FRotator where the yaw value is set to GetBaseAimRotation().Yaw. For some reason though the value that gets returned when I do that is 180 degrees opposite of what I would expect.
From my understanding GetBaseAimRotation() should return the information for the Character’s eyes. Which when there is a possessed pawn should be the same as the camera value centerpoint. I would expect that to give me a value of 0 when the camera is behind the character and the character is pointed straight ahead. Instead it’s giving me a value of 180. I’m really confused by this because tons of tutorials and the documentation suggest that this is the wrong behavior. I even loaded up an older project in 4.27 and did a print of the GetBaseAimRotation().Yaw value to screen and it was returning 0 as expected. Any help or guidance would be greatly appreciated. Thank you!