Line Trace From Camera Is Up and To The Left

So I’ve looked at other people having issues with this, but for some reason no matter what i try i seem to get the same result. The line trace is slightly off from the centered cross hair up and too the left. When you move the character after shooting you can see the line of the cast and it appears to have come from the middle of the camera or at least a straight line from the camera. Any ideas?

P.s no this isn’t how i’m gonna have the shooting work this is just to find the camera look at point to make the end point of the line trace for the rifle

can you post the same from the side.

It may be hitting a collision box or something before the wall.

show the trace and pause game, exit character and look around.

48646-

Have you checked if the center of your crosshair image is exactly in the center of the screen?

If you are starting from the default First Person Shooter template, the HUD blueprint draws the crosshair at half the width and height of the screen. But, this is referring to the top left corner of the crosshair image. If you want the center of the crosshair to be in the center of the screen, you need to offset it by half the width and height of the crosshair image.

In the case of the Default First Person Shooter template, since the crosshair image is 16x16, you need to offset it up and left by 8 pixels.

1 Like

This is indeed the problem, thank you, i should have really checked all this before hand. Thank you