I have a setup like this going on right now. I’m impressed with how well it actually works to just attach the camera to the headbone.
My current issue though is the aim offset calculations are off by a frame. I’m calling GetBaseAimRotation right now to get my character’s AimPitch in the AnimGraph. I plan on updating it to do more advanced calulcations later but that’ll still likely involve calling GetBaseAimRotation or GetActorEyesViewPoint in some way and it’ll probably still be off by a frame.
As a result, when I aim up and down my gun lags behind by a frame which looks terrible. It’s not noticeable in third person view. Didn’t have this issue when I was doing normal FPS view by having floating arms attached to the camera component like in the sample FPS project. I looked at how some other people did this and they don’t seem to have issues, so I’m wondering what I’m doing wrong when calculating the aim offset direction.
Also, this whole second camera thing, how well will it work with VR? I’m guessing it might not.