Trace from weapon is not straight while using fixed camera

Hi, I’m working on a game with a fixed camera system and I have a spear trace that starts at the barrel of a gun but ends at the floor??

This is how I set up the trace:

This is the outcome of that trace:

The trace does not remain straight and for some reason angles downward!

Now my camera system needs to “set control rotation” of the player when the player stops moving in order for the cameras to work correctly. I’m not sure if that has anything to do with the trace gradually pointing downward, it’s just a thought.

Does anyone have any idea how to keep the trace straight from start to end?

Thanks!

Remove the z-value from the “end”-input, and plug in the z-value of the Pistol Trace Point Location instead.

EDIT: For anyone who does not know: You can split the vector input into the 3 floats (x,y,z) by right-clicking the pin and selecting “Split Struct Pin”

You should be able to get the Actor Forward Vector without getting the rotation first.
Also: I presume your Pistol Trace Point Forward Vector points towards the ground.

Thanks, that got my trace to go straight. But when I aimed up or down it still pointed exactly straight. I fixed that by adding the Z’s of location and forward vector together, like this: