Crosshair not aligned

Hello,

Does anybody know why the cross-hair is not aligned to line trace? Does anybody know howto fix this?

thank you in advance

What’s your code for the trace, it works fine for me:

I think you are looking at it the wrong way, your linetrace is not aligned with your crosshair, unless you want your crosshair to be in a different place then the center of the screen.

You’d need to supply a lot more details to get an answer to your question.
Show us how your linetrace is set up, show us how you have added the crosshair to the screen etc. Otherwise this is an impossible task to solve for people that don’t know what and how you have done it.

My guess is, is that you are not starting your linetrace at the world position of the camera but at the position of the Pawn itself or the Character.

Hi, the line trace is aligned to the crosshair if I look straight, however, once I look somewhere else (up/down) the line trace messed up

Hi, I have similar BP but I need a pop-up text on aim rollover. You may see my BP screenshot below.

Hi, Problem solves, works perfectly. Aligned just in the center.

I had to tweak X & Y size coordinates in FP HUD BP to compensate for the size of the crosshair subtracting half of its size (original size 16x16)
Also in the FPCBP, I have amended the first 2 nodes taking the actors from the first-person camera

290905-aim-down.png

Yes, I think it’s because you’re taking the line trace from the actor rather than the camera. It has to be from the camera if you ever stand any chance of getting them lined up.

The crosshair and the trace are often a little out of whack, but it shouldn’t vary with camera angle.