Stop radial force from going through walls

I have a radial force that is fired by a grenade but I don’t want it to affect things on the other side of a wall. Is this possible?

Hi VoidGoat,

There isn’t a way to block a radial force actor though blueprints. One of the simplest methods to accomplish what you are trying to do would be:

  • Trace a line to the impact point of the grenade.

  • If it hit a wall/floor, do a sphere trace that is the size of the damage radius and get all possible actors that could be effected

  • Then calculate the impulse to apply to them from the center of the sphere trace to the object

  • Apply the impulse

Cheers,

TJ