Can't stop projectiles from interacting with player
I have the player firing projectiles from a gun, and I can't stop them from interacting with the player who shot them. I know that ordinarily you would use the "ignore actor when moving" node, but it doesn't seem to be working the way that it should. By using that node, I can stop the projectile from actually colliding with the player, but even as it passes harmlessly through, it's still applying force to the player and launching them. In fact, I don't know why the projectile is applying force at all; there's nothing explicitly set up to have that effect, and I even made sure to disable "apply impulse on damage" for both the projectile and the player.
asked Sep 12 '17 at 01:52 PM in Blueprint Scripting
I think I've found the solution. In the settings of the projectile's collision component, I set the collision to query only. This stopped it from automatically interacting with physics objects. In my particular case, I don't need it to do that, so it works fine. If I did need that effect, I could probably just apply an impulse on hit. This is interesting, because not only did it stop the player from getting knocked around as I expected, but it also stopped the collision event from firing when passing through the player. I guess the "ignore actor when moving" node only works correctly if the collision is set to query only.
Follow this question
Once you sign in you will be able to subscribe for any updates here