VFX clipping trought walls

so im making a vfx following a tutorial on youtube at the moment it works fine if i spawn it at ground level:

but if i spawn it on a floating platform it pass throught:

im using a sphere trace to get the hitted target and then spawn an actor that have inside the vfx at the position of the hitted target, but it seems to work only if the target is on the ground, any idea how i could fix it? thank you for any help

You can simply add collision to particles if you want them to react objects in world.
If you are controlling its beam length (if its not particle but a beam)

Make sure your hitresults are right and correctly hits blocking object.

Also if you are not doing traces in realtime just on NS spawn then it is normal behaviour not to react objects dynamically coming between.