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
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?