What would cause a line trace to deflect from the crosshairs?

Drifty86
Fri, 30 Nov 2018 16:03:19 +0000
UI

My hit markers are deflecting from my crosshairs based on how far I turn my character. I am trying to have a sphere trace go from the barrel of my gun to where the crosshairs are pointing (in the center of the screen). My solution was to do a line trace from the center of the camera along the forward vector (through the crosshairs), then break the hit result and find the ‘Impact Point’, and then use that ‘Impact Point’ as my ‘End’ on my sphere trace. This works for the most part, except for one thing.
When I play it, the sphere trace goes to my crosshairs initially, but if I rotate, the sphere trace exaggerates my rotation. As I turn further left, my sphere trace drifts further and further left from the crosshairs. If I turn right, the crosshairs move slowly (but noticeably) further to the right of the crosshairs. I am at a loss for what to do. Please help.

10 posts - 1 participant