Hello guys!
I have a projectile. When it kills an enemy, it sends an impulse to a random bone from a list.
This works for both single shots and burst fire. Then, I wanted to add shotgun firing. I encountered an issue when multiple projectiles spawning from the same point would destroy each other. I fixed this by creating a separate collision channel, I named it Projectile and make it ignore actors with same collision channel; previously, it was World Dynamic. This worked, the projectiles no longer destroy each other, HOWEVER! The projectiles stopped applying impulses to the bones, although they still ca kill an enemy. Well, it’s not entirely true, because when shooting from a shotgun, the impulse sometimes goes through, sometimes, but not consistently. In single fire or burst fire, there is no impulse at all.
It seems like the issue might be the custom collision settings, but both the enemy and the projectile react to the custom Projectile channel the same way they would to the standard World Dynamic, except that World Dynamic does apply the impulse.
Single, automatic, and cluster firing use the same projectile; the differences are the frequency and quantity only.
.
.
.
Enemy collision settings
.
.
Projectile collision settings
.
.
Applying the pulse
.
.
.
What do you think?