# How Do I Check Multiple Actor Components On Overlap?

**URL:** <https://forums.unrealengine.com/t/how-do-i-check-multiple-actor-components-on-overlap/2056242>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 6, 2024, 7:27pm UTC](https://forums.unrealengine.com/t/how-do-i-check-multiple-actor-components-on-overlap/2056242 "2024-10-06T19:27:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScoutAX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scoutax/32/973326_2.png) [@ScoutAX](https://forums.unrealengine.com/u/ScoutAX)\
**Post date:** [October 6, 2024, 7:27pm UTC](https://forums.unrealengine.com/t/how-do-i-check-multiple-actor-components-on-overlap/2056242/1 "2024-10-06T19:27:50Z")

</div>

Hello!  
I currently have a box that when the player throws it applies physics and when it touches the ground it disables physics on the box. Rather than check if the box itself is overlapping the ground, I want it to check if components are overlapping with the ground. I placed a small plane on each side of the box and I want the code to disable the physics on the box if any of the planes overlap with the ground. The main reason I want to do this is to make sure the box is flat on the ground before disabling physics.

This is the code I currently have for detecting the box overlap

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/f/3cf9568ab1702008166e4376d78d18c37958c21d.png)

I figure that I could just create an OnComponentOverlap event for each plane individually but I feel like there is a cleaner way to do it.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [October 6, 2024, 9:24pm UTC](https://forums.unrealengine.com/t/how-do-i-check-multiple-actor-components-on-overlap/2056242/2 "2024-10-06T21:24:39Z")

</div>

Why don’t you just check it’s rotation _while_ it’s generating a hit event with the ground?

---

<div class="post-metadata">

**Author:** ![RonaldoAlmeida](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RonaldoAlmeida](https://forums.unrealengine.com/u/RonaldoAlmeida)\
**Post date:** [October 6, 2024, 11:06pm UTC](https://forums.unrealengine.com/t/how-do-i-check-multiple-actor-components-on-overlap/2056242/3 "2024-10-06T23:06:56Z")

</div>

If all you need to know is if the object hit the ground or not I would use the event `OnComponentHit` of the `StaticMeshComponent` or `SkeletalMeshComponent`. If you don’t have collision on it, just add a simple or complex one in the editor.  
If the performance got affected by this (because a complex mesh would have a lot of calculations), I would use a separate collision mesh for the `UStaticMesh` and use the `OnComponentHit` event of that collision mesh.  
In the `OnComponentHit` event all you need is to check for the tag `Ground` on the actor who hit you.  
Does that help?  
If not, could you help me understand the problem a little more?

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [October 7, 2024, 3:26am UTC](https://forums.unrealengine.com/t/how-do-i-check-multiple-actor-components-on-overlap/2056242/4 "2024-10-07T03:26:20Z")

</div>

Each component can have an overlap event placed in BP. Just right click in the component in the classes components tab
