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

**URL:** <https://forums.unrealengine.com/t/linetrace-often-doesnt-see-my-materials-just-returns-with-default/641883>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, UE4-27, Blueprint\
**Created:** [September 5, 2022, 12:37pm UTC](https://forums.unrealengine.com/t/linetrace-often-doesnt-see-my-materials-just-returns-with-default/641883 "2022-09-05T12:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [September 5, 2022, 12:37pm UTC](https://forums.unrealengine.com/t/linetrace-often-doesnt-see-my-materials-just-returns-with-default/641883/1 "2022-09-05T12:37:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [September 5, 2022, 1:17pm UTC](https://forums.unrealengine.com/t/linetrace-often-doesnt-see-my-materials-just-returns-with-default/641883/2 "2022-09-05T13:17:00Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![jcuypers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jcuypers](https://forums.unrealengine.com/u/jcuypers)\
**Post date:** [September 5, 2022, 3:04pm UTC](https://forums.unrealengine.com/t/linetrace-often-doesnt-see-my-materials-just-returns-with-default/641883/3 "2022-09-05T15:04:38Z")

</div>

Maybe this helps?

> [@Hit event doesn't give back Physical Material](https://forums.unrealengine.com/t/hit-event-doesnt-give-back-physical-material/380971):
>
> Used clear TPS project also. Create new physical material. Override floor/wall physical material to the new one. On Event Hit call a PrintString to write out the physical material, or the result of a comparison. You will get None.
