Question About Aiming, Line Trace Problem

Just Wondering how to get my line trace to shoot forward from the barrel of the gun no matter what the rotation,
Whats happening now is I shoot up in the air but the bullet flies down towards the ground to the right. If I take shots in the Forward direction it shoots as expected and The line trace from the camera is fine it shoots as expected… As you can see from the photo example. (took a few shots up in different directions and these are the results.)

I would start by moving the spawn point for the projectile further away from the character just to see if this isn’t a simple collision issue, before you start playing with anything else.

I think you’re setting up the trace wrong. The trace has a start and end, apparently your end is on the floor. How are you defining the end point of the trace?

It should be some distance forward from the end of the gun, and you will need to use a get forward vector from the gun.

In the BP, put an arrow ( it’s a BP component ) on the end of the gun, you can get a forward vector from this arrow, and you can see which way it’s pointing :slight_smile: