Capsule Collision not generating Hit events

Hi everyone, I am trying to design a gun from scratch in unreal 4. My weapon is spawning bullets, and I want the bullets to apply damage on hit. So I want them to generate Hit Event. They should also be blocked by walls in order to generate impacts using particules.

Unfortunately, my bullets are currently not able to trigger on hit event. They are not even stopped by walls and I don’t understand why.
Here are the collision setups for both the bullet and a target pawn :


I don’t understand what I am doing wrong, please help

Try On Component Begin Overlap first
And also I had issues connected with the default response in the engine collision settings it affects behavior a lot, check it.

Thank you, actually the overlap events seems to work fine(when the collision is set to overlap instead of Block) but not the hit event… And I need Hit events and not Overlap Events

Here is my settings for default collision, I don’t see anything wrong about it :

At least both objects have some collision - that’s good
And probably your walls have the wrong collision settings - check it
But in the case of pawn, I don’t see the clear reason for that, try to tick Simulation Generates Hit Events

Do you have something like that in the construction script of your projectile?
For instance, in my case, I’m changing the response according to a team to prevent friendly fire and if you have something like that it might bring issues too

I’ve tried to check simulate Hit events for both but it did not resolve the problem. My construction script is blank and I’m designing the weapon for a single player game so I don’t think that there is such a problem in my project.
If I try to trace by channel (in an other actor, for example an other weapon with a no projectiles but just ray casting, using a custom channel), the walls are being hit and give a hit result. It is just not working on the bullet unfortunately.

click on, “generates hit events” in collision :face_in_clouds:

Hit result of a trace is not the same as Hit in terms of a collision
Also, I had some issues when projectile’s velocity was too high, CCD helps with this case
In my game I have such settings for projectile


For target

It works
ezgif-4-7395f459f0

And these object channel response settings
I have to set “Overlap” as default to prevent their collision with guns.

Hum, I have checked the speed problem cause it could be an issue in my situation. Even at low speed it does not generate hit event unfortunately. At normal speed, it still does not generate hit events, but it can generate overlap events if I change collisions to be overlap instead…

Also checking CDD did not resolved the probelm, thank you for sharing your setup on your project !

1 Like

The last thing that you can try - remake it from scratch, once it helped me

Ok, it finally works! I changed the default settings in the project settings to be “block” and made the Capsule collision the root component of the bullet. So I think maybe it wasn’t generating hit events beacause the collision was not the root component.

Thanks a lot for your help, I really appreciate it.

2 Likes

Glad to hear that I helped. Sometimes it’s tricky with default settings, I just forgot about the root component, I have collision mesh on top of the hierarchy.

1 Like