Bullets sticks in the Gun

Hello guys i have the problem that my bullets are still stick in the gun just sometimes they come out of the gun i made a video:

my settings:

i go the same way like in this on Youtube:
(20:22 - 25:30)
“How to Make Your First Game in Unreal Engine 5 in 2023 - Full Course”
(channel: Gorka Games)

Thank you in advance for anyone looking at this and wanting to help me!!
will reply tomorrow after work…

Are you using projectile movement component for the bullets?
Looks like initial impulse is not being applied correctly.

Can they collide with gun collision, or your character collision?
Try to put them temporary to overlap all, and see how they behave.

Hey thanks for the fast answer…

Yes i using movement component for the pullets (it think)

they can collide with my character i think so because i can jump on the bullets like a plattform

here a other screens. im new in the forum so i always can just make one link or photo for each post

Try this: How to Shoot a Projectile in Unreal Engine 5 - YouTube
Or this: Spawn Bullet Projectile In Unreal Engine Quick Tutorial - YouTube

It should be more clear on how to do it.

ok waht i try now and its WORKED i put the bullet arrow far far away from the gun:
Bild_2023-08-08_222632803

so now the bullets come out of the gun :smile:

but if i walk forward to the direction of shooting and the bullets touch the gun
i have the same problem that the bullets stops and stays at the moment where they touch the gun how can i fix that?

ok thanks!!! :smiley:

but i will see the videos and get more information about thanks thanks thanks :slight_smile:

I had exactly the same issue with my game when cars drive fast and have to shoot. It is a pain to resolve. I tried to move the spawn point forward the faster my car moves. But, at the end, I ended up using overlap, instead of hit.

I would also suggest that you disable collision for your shorgun mesh. Just select the mesh and choose NoCollision on the collision settings. It should resolve your issue.

Ok thanks ^^

There is also Ignore Actor when Moving | Unreal Engine Documentation to try.

I tried that thing like on every way I could, and it never worked for me. I would love to see working example of it :slight_smile:

IgnoreWhenMoving

IgnoreWhenMoving.zip (44.5 KB)

1 Like

Is this UE4 or UE5? I tried it in my game Barely Racing, and it never worked. My game is on UE 4

Yeah, just like you said, it works fine. Thanks for this project. I remember having issues spawning bullets on my car, as bullets would hit the owning car. And I did this same thing, and it would not work.

@ZimMabu1992 looks like this works fine, so you can just download Pezzott1 project and you should be good to go.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.