# Why can't I access physical material on hit event

**URL:** <https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905>\
**Category:** Rendering\
**Tags:** unreal-engine, hit-event, question\
**Created:** [April 9, 2019, 11:40am UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905 "2019-04-09T11:40:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colatran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Colatran](https://forums.unrealengine.com/u/Colatran)\
**Post date:** [April 9, 2019, 11:40am UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/1 "2019-04-09T11:40:48Z")

</div>

Hi.

So I was working with hit events ob my bullets so I can make that material hit effect (hits wood, makes wood effect, hits metal makes metal effect, etc…)  
The only way I managed to make hit recive the material was to apply the phys material into the material:

![273732-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/0/a102bd8b43ca521748f7e7449dc90217874bdee7.png)

to access it:

 ![273729-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/f/18fd4cf4e8e28c1ebfa65bb576864b564a656815.png)

but for my project it’s not reasonable to make a new material for every surface and most of the collision is going to be based on components like this:

![273730-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/4/d647907397fe614f16c570686b1dea491219a4c4.png)

to access it:

 ![273731-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/d/34d5261363d3866ce03bb423665224e38e9078df.png)

however, when I try to access the phys mat this way it just dosen’t work and gives an error:

 ![273733-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/6/336b658a45b050b1781acca243fd266e309a959f.png)

what do I do to acsses phys mat this way?

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 9, 2019, 12:32pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/2 "2019-04-09T12:32:41Z")

</div>

Hi there, does it work if you check the “Simulation Generates Hit Events” tick above the PhysMat slot in your component?

---

<div class="post-metadata">

**Author:** ![Colatran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Colatran](https://forums.unrealengine.com/u/Colatran)\
**Post date:** [April 9, 2019, 12:46pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/3 "2019-04-09T12:46:03Z")

</div>

no, it dosen’t

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 9, 2019, 12:51pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/4 "2019-04-09T12:51:13Z")

</div>

Ok, is the same setting checked in the component you are checking with? Are both set to Block each other’s collision ObjectType? If you need them to overlap try running this check with an OnComponent Begin Overlap event instead.

---

<div class="post-metadata">

**Author:** ![Colatran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Colatran](https://forums.unrealengine.com/u/Colatran)\
**Post date:** [April 9, 2019, 3:25pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/5 "2019-04-09T15:25:23Z")

</div>

the setting is checked in both,

they block each others collision obj type

with overlap the same thing happens:/

---

<div class="post-metadata">

**Author:** ![Colatran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Colatran](https://forums.unrealengine.com/u/Colatran)\
**Post date:** [April 9, 2019, 3:31pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/6 "2019-04-09T15:31:44Z")

</div>

ok I just found out what it is:

 ![79812-untitled-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/8/ff851e4e0c554dbfa01838a4d504a0a88d5aceb3.png)

set this in both

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 9, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/7 "2019-04-09T15:32:07Z")

</div>

I’m away from UE to replicate this but I believe the reason you can’t get it is that you’re grabbing the PhysMat right out of the HitResult, which may correspond to the root or actor and not the specific component you want to test against. From the OtherComponent (or the Hit Component) pin, can you drag out a Get Physical Material node? Then check for the Surface Type off that.

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 9, 2019, 3:33pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/8 "2019-04-09T15:33:05Z")

</div>

Oh great! Glad that worked! Disregard my last comment then 🙂 Cheers

---

<div class="post-metadata">

**Author:** ![Colatran](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Colatran](https://forums.unrealengine.com/u/Colatran)\
**Post date:** [April 9, 2019, 4:02pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/9 "2019-04-09T16:02:35Z")

</div>

cheers. 🙂

---

<div class="post-metadata">

**Author:** ![thorcxcx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thorcxcx](https://forums.unrealengine.com/u/thorcxcx)\
**Post date:** [December 21, 2022, 2:09am UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/10 "2022-12-21T02:09:41Z")

</div>

a lot thank, that’s the correct solution!!!

---

<div class="post-metadata">

**Author:** ![utopia.Game2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/utopia.game2/32/763789_2.png) [@utopia.Game2](https://forums.unrealengine.com/u/utopia.Game2)\
**Post date:** [October 28, 2023, 3:28am UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/11 "2023-10-28T03:28:38Z")

</div>

FINALLY After 1 day … you saved me thank you

---

<div class="post-metadata">

**Author:** ![oxyg1n](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/oxyg1n/32/992508_2.png) [@oxyg1n](https://forums.unrealengine.com/u/oxyg1n)\
**Post date:** [January 19, 2025, 7:19pm UTC](https://forums.unrealengine.com/t/why-cant-i-access-physical-material-on-hit-event/446905/12 "2025-01-19T19:19:20Z")

</div>

Thank you. 🥰
