I created a class blueprint with a static mesh as root.
In the event graph, I use LineTraceComponent on it, but the node never return true, even when it should.
I tested and I’m sure the ray intersects the mesh.
My mesh has a translucent material and use world position, does it change anything?
Thanks, it works :), don’t know how I missed it…
But I still have a problem, my mesh is a place on which I set a material with world displacement to simulate waves.
The problem is that ray cast doesn’t apply to material, the normal I get is always 0,0,1.
That is expcted behavior. Anytdisplacement you do in vertex shader is only visual. As far as I know those displacements have no physical impact. Only thing that could possibly interact with those are GPU sprites (since they use the depth buffer for physics simulation)