Line Trace By Object is not ignoring BP actor class

Hi Guys

I´m trying to make the Butterfly Blueprint ignore the Fog_Sheet Blueprint and DON´T land on it.

I set to ignore the Fog in the line trace, but it is not ignoring the fog. Is a bug or am I doing something wrong?

See picture of the Butterfly Blueprint:

Both assets can be found in the “Blueprint Content Example” if you want to replicate it

Thanks in advance for any help!

Hello ,

I was unable to find those particular blueprints but I set up two cubes in a project and used those as my two line trace objects, one set to be ignored and the other the target. Upon doing that I set up the same logic you have here and it seems to work correctly. To ensure that the line trace is hitting the Fog Layer and not something else, can you try using the hit result you get from the line trace to cast to the fog layer’s blueprint class from the “Hit Actor” pin? You could just put a simple print string to test it. Also, try setting the Draw Debug Type to Persistent so that you can see where it is hitting.

Hi !

Thanks for reply me. Here was where I found both BPs:

The butterfly BP detects colision near by using the line trace, and the line trace is hitting the fog, even when I set it to ignore the fog.

Hi !

I Found it!!

The butterfly BP line trace for object is hiting the “Foliage Procedural Volume” because the butterlfies are inside that volume, that is where the foliage are too.

The procedural volume is set to ignore all collision, but it was colliding with the butterflies. Now I set it to NO COLLISION and everything is fine!

Sorry for bother you guys about it, it is not a problem in the line trace, it is just the default settings for collision of the procedural foliage volume that we need to set to no collisions.

Thanks anyway!!!