Projectile spawning issue (player is too fast?)

Insekure
Sat, 03 Oct 2020 19:10:04 +0000
Community & Industry Discussion

Hello. Im working on my small learning project where i put some things that i can learn. Lately i’ve been doing some weapons for the player to use. I’ve created a hitscan machinegun, that shoots a line trace from a barrel point that is a scene component. Here is how it looks like: Imgur: The magic of the Internet
The trace start is in the location of this scene component called barrel, and the end is certain amount of units away, coming to the center of the screen (a crosshair). Im having few issues as seen here, on my video:

Projectile/actor spawning issue - YouTube.

Here i spawn another actor that is actually a projectile (spawned at the start of the trace) that’s linear velocity is set to a certain amount so it actually falls to the ground if it doesnt hit anything (its purely cosmetic) but it seems like, when im moving either left or right, the cosmetic trails/projectiles that i spawn from the gun seem to be a bit off to the left or right side (depending on where im moving), and not exactly from the barrel point.

Can somebody please answer me what am i doing wrong here? Should i change it to some better solution - and what that would be? I can also post the blueprint of my machinegun if it will be needed.
Please, i kindly ask for tips, i really have no idea what can be the reason of this issue.

Thanks in advance, ~insekure

7 posts - 1 participant