Looking for a solution to stop a UE4 niagara mesh from passing through objects

I’m working on creating a dynamic mesh effect in niagara that stops when it collides with a surface above it. However, I can’t figure out a method of scaling the mesh up to the x distance where it hits a surface (if it doesn’t hit a surface there would be a set value it couldn’t go past).

My current idea was to potentially do a line trace that would be able to determine when to stop or attempt some sort of collision based solution, but I’m not sure on the implementation.