How to receive whether line trace hits backface or frontface?

Hello,

i need to know whether a line trace hits a backface or a frontface (trace complex, mesh uses complex collision as simple and is double sided) but found no solution to the problem (first i thought impact normal and impact point would be helpful… but unfortunately they are what they say they are: impact normal and trace normal and not the normal of the hitten face). The only workaround i can think of at the moment would be to have two versions of the mesh, both not double sided and one with flipped normals. That would nearly double the meshes in the game :frowning:

I would highly prefer a solution with blueprints, but if everything’s falling apart i would be thankful about ideas or solutions involving c++, too shudder - not a great programmer i am

As a additional question concerning the workaround (if there is no other way): Is it possible to flip all faces of a mesh via blueprint (in runtime)?


Posted this question on answerhub, too, hope this i not considered crossposting

Greetings, Kukuschi

Not sure if there is a way (others can correct me if I am wrong) but why don’t you just add a trigger to the front and the back and use the events from there?

How simple is the mesh? Could you compare the angle of the trace against the facing direction of the mesh?

HitResult gives you Face Index

“Face index we hit (for complex hits with triangle meshes).”