Material 3D masks


there is a 3D mask with BoxMask3D, meaning that this mask only displays the material if it’s inside of this 3D-box. Is it also possible to use a static mesh as a 3D-mask, meaning that the material is only shown if it’s inside the static mesh?

The background is that I want to spawn a particle effect if it collides with a wall. This particle effect is on the wall, like a pressure wave, but if I spawn it on the wall material directly I can’t spawn multiple pressure waves at a time. Also the method to duplicate the wall and make a translucent material for each pressure wave is not good, because much translucent materials would be overdrawn.

Thank you,