# Is there an overlap check against one specific given actor/component instead of checking the whole world using 'OverlapBlockingTestByChannel' ?

**URL:** <https://forums.unrealengine.com/t/is-there-an-overlap-check-against-one-specific-given-actor-component-instead-of-checking-the-whole-world-using-overlapblockingtestbychannel/1795512>\
**Category:** Programming & Scripting\
**Tags:** source-code, unreal-engine, Engine-Source-Code, editor, CPP, question\
**Created:** [April 9, 2024, 12:47pm UTC](https://forums.unrealengine.com/t/is-there-an-overlap-check-against-one-specific-given-actor-component-instead-of-checking-the-whole-world-using-overlapblockingtestbychannel/1795512 "2024-04-09T12:47:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melvin\_Brink](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Melvin\_Brink](https://forums.unrealengine.com/u/Melvin_Brink)\
**Post date:** [April 9, 2024, 12:47pm UTC](https://forums.unrealengine.com/t/is-there-an-overlap-check-against-one-specific-given-actor-component-instead-of-checking-the-whole-world-using-overlapblockingtestbychannel/1795512/1 "2024-04-09T12:47:18Z")

</div>

Instead of methods like ‘BoxOverlapActors’ or ‘OverlapBlockingTestByChannel’ which both check the world. is there an alternative for specifically checking if one given actor is overlapping with a given shape/collision-box?

For context, I am generating/updating my own navigation-mesh, and the entire algorithm is written in default c++ without using any of the UE API except for the overlap-check.  
It would seem logical to check against the specific components of the actors directly when I can, which prevents having to use ‘OverlapBlockingTestByChannel’ which looks through the world globally to first find any actors and then if any is blocking the actual provided collision-box.

The generation / updating of the navmesh is very fast already, but the least performant method by far is the build-in overlap check, which takes around 1 second during the generation of a few million nodes, whilst the rest of the generation takes about 400ms for these nodes, combined 1.4 seconds.  
( The actual navmesh will not require this many nodes except for very large levels, and updating the navmesh does not require a regeneration, its speed is always relative to what actually needs to update )

I would be happy if someone could share some experience about this with me!
