Hey all, I have been trying to fix this issue for days, and I have the feeling I am just stupid and not seeing the obvious solution. So I figured instead of smashing my face against the brick wall I would ask for help here.
We have used a method of blending between an upper body and lower body animations so we can use a locomotion AnimBP and they blend in the state of the upper body based on equipment or activities the player is doing. Here is an example.
I also went about creating an AimOffset to make sure the upper body would be able to aim weapons and the like toward the camera even though the lower body/hips is facing another direction. Here is an example of my AO.
The problem is, when all is said and done, and I play the game. The AimOffset’s Pitch follows the crosshair up and down, but I get zero yaw working. This means that since the hips of the character are pointed to the right, the player is always pointed off to the right instead of aiming forward. Here is an image of the issue.
The code is plugging in the player’s input pitch and yaw as defined by Unreal Engine’s defaults to the AimOffset so I have no idea where to even start with a solution.
Thanks in advance for any advice.