# What is the difference between OnActorHit and OnComponentHit?

**URL:** <https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 24, 2015, 1:48am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327 "2015-03-24T01:48:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asperatology](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asperatology](https://forums.unrealengine.com/u/asperatology)\
**Post date:** [March 24, 2015, 1:48am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327/1 "2015-03-24T01:48:34Z")

</div>

I feel both of them are the same, have the same functionalities, and can accept the same delegates.

What makes them different among themselves? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![hyperdr1ve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hyperdr1ve](https://forums.unrealengine.com/u/hyperdr1ve)\
**Post date:** [March 24, 2015, 3:23am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327/2 "2015-03-24T03:23:56Z")

</div>

Think of components as being children of Actors.

Imagine an actor that represents the car. Pretend the root object is the car body and each wheel is a component. If you wanted to get a hit event from the car body, you would use OnActorHit. If you wanted to get hit events from the wheels you would use OnComponentHit.

You couldn’t use OnActorHit to get hit events from the wheels because they aren’t actors, they’re components of an actor.

---

<div class="post-metadata">

**Author:** ![asperatology](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asperatology](https://forums.unrealengine.com/u/asperatology)\
**Post date:** [March 24, 2015, 3:26am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327/3 "2015-03-24T03:26:05Z")

</div>

So, only if the actor has only 1 component, both OnActorHit and OnComponentHit will have the same function?

---

<div class="post-metadata">

**Author:** ![hyperdr1ve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hyperdr1ve](https://forums.unrealengine.com/u/hyperdr1ve)\
**Post date:** [March 24, 2015, 3:35am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327/4 "2015-03-24T03:35:15Z")

</div>

I don’t know if you can add a dynamic OnComponentHit for a root component or not. I’ve never tried, but I think it would be equivalent since the root component is technically a component. It’s probably just easier to think in terms of the collision geometry that you have. If your root component is a SphereComponent with collision enabled then OnActorHit.

If your root component is an arrow component and all the collision bodies are underneath it, then OnComponentHit.

---

<div class="post-metadata">

**Author:** ![asperatology](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asperatology](https://forums.unrealengine.com/u/asperatology)\
**Post date:** [March 24, 2015, 3:36am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327/5 "2015-03-24T03:36:27Z")

</div>

Thank you for clearing this up for me.

---

<div class="post-metadata">

**Author:** ![ymars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ymars](https://forums.unrealengine.com/u/ymars)\
**Post date:** [June 22, 2016, 7:08am UTC](https://forums.unrealengine.com/t/what-is-the-difference-between-onactorhit-and-oncomponenthit/312327/6 "2016-06-22T07:08:02Z")

</div>

[Digest in Japanese](https://answers.unrealengine.com/questions/440133/%E3%82%B3%E3%83%B3%E3%83%9B%E3%83%BC%E3%83%8D%E3%83%B3%E3%83%88%E3%81%9F%E3%81%91%E3%81%AB-hit-%E3%82%A4%E3%83%98%E3%83%B3%E3%83%88%E3%82%92%E7%99%BA%E7%94%9F%E3%81%95%E3%81%9B%E3%82%8B%E3%81%AB%E3%81%AF-%E7%BF%BB%E8%A8%B3%E8%A6%81%E7%B4%84.html#answer-440134)
