Linetrace often doesn't see my materials, just returns with "Default"

My guns work with LineTraceByChannel and I am trying to get the Physical
Material and/or the Surface type of whatever is shot so I can add blood effects/deal damage etc…
The problem is when you shoot my AI characters it almost always returns the PhysMat as “DefaultPhysicalMaterial” and the Surface Type returns “Default” and I can’t figure out why.

I can confirm that the mesh on the actor is not default and it also has a custom physical material set to it. I can see that the HitActor is correct, so my AI is getting shot but some random invisible default material is all thats getting hit usually.

Sorry I’m not giving you much to go off of to help me but let me know what screen shots you want and I’ll send those. Thanks

Did you check, which component gets hit? It is possible, that your linetrace hits the capsule component of your Actor instead of the skeletal mesh component itself. In this case, you need to make sure, that the Capsule has the Trace Response for the Channel set to Ignore (most likely you use the Visibility channel).

1 Like

Maybe this helps?

1 Like