# LineTraceSingleByChannel always returns DefaultPhysicalMaterial on Hit result

**URL:** <https://forums.unrealengine.com/t/linetracesinglebychannel-always-returns-defaultphysicalmaterial-on-hit-result/483128>\
**Category:** World Creation\
**Tags:** line-trace, unreal-engine, Physics, hit-event, Collision, question\
**Created:** [May 14, 2021, 1:20am UTC](https://forums.unrealengine.com/t/linetracesinglebychannel-always-returns-defaultphysicalmaterial-on-hit-result/483128 "2021-05-14T01:20:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shehanmark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shehanmark](https://forums.unrealengine.com/u/Shehanmark)\
**Post date:** [May 14, 2021, 1:20am UTC](https://forums.unrealengine.com/t/linetracesinglebychannel-always-returns-defaultphysicalmaterial-on-hit-result/483128/1 "2021-05-14T01:20:18Z")

</div>

I have a requirement where I do a simple line trace when I’m shooting using a gun and upon getting a hit result, according to the physical material I’m getting I’m spawning a particle effect.  
Here is how I have set it up.

 ![338344-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/8/928884d734dede8a733d1c6ca89353ee75f6f753.png)

I have created a physical material and set the surface type to a custom surface type I made.

 ![2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/d/69d4e16b59126794bf375ba41f512b637bbbecf6.png)

 ![338346-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/2/092ecf6ae352b95859ea5bb0f8bc9d20539d4b50.png)

And that physical material has been set here

 ![338347-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/7/7d7491848979bc6d0bb61d4816b76b5d26f723e0.png)

Here is how I’m trying to get the physical material

 ![338348-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/2/6c2707841f4bd66e6424c5b86ea582430cfbddcf.png)

][5]

**Issue**  
When I try to get the physical material using the above mentioned line trace configuration.

```
bool isHit = GetWorld()->LineTraceSingleByChannel(Hit, EyeLocation, TraceEnd, COLLISION_WEAPON, QueryParams);

```

I always get **DefaultPhysicalMaterial**. But If I try to get the physical material using **ECC\_Visibility** Channel. I get the correct physical material associated with the mesh.  
I am unable to figure out the issue here. Any help would be much appreciated.  
I am using unreal 4.26.1

---

<div class="post-metadata">

**Author:** ![SeGuVeGa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seguvega/32/977989_2.png) [@SeGuVeGa](https://forums.unrealengine.com/u/SeGuVeGa)\
**Post date:** [November 26, 2022, 5:40am UTC](https://forums.unrealengine.com/t/linetracesinglebychannel-always-returns-defaultphysicalmaterial-on-hit-result/483128/2 "2022-11-26T05:40:23Z")

</div>

In my case i wasn’t set to true the FCollisionQueriParam.bReturnPhysicalMaterial = true;  
jeje but also check the Collision Complexity is set to Use Simple as Complex val
