# Looking for Help with Custom Object Culling Tool

**URL:** <https://forums.unrealengine.com/t/looking-for-help-with-custom-object-culling-tool/481602>\
**Category:** World Creation\
**Tags:** modular, culling, detection, art-tool, unreal-engine, question\
**Created:** [April 8, 2021, 2:24pm UTC](https://forums.unrealengine.com/t/looking-for-help-with-custom-object-culling-tool/481602 "2021-04-08T14:24:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uj6D76b95mR3W](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Uj6D76b95mR3W](https://forums.unrealengine.com/u/Uj6D76b95mR3W)\
**Post date:** [April 8, 2021, 2:24pm UTC](https://forums.unrealengine.com/t/looking-for-help-with-custom-object-culling-tool/481602/1 "2021-04-08T14:24:17Z")

</div>

Hello!

I currently work for a small indie group and they have an in-house culling tool to hide parts of a structure for people to look inside. Ive been pushing for a change but at the moment that will more than likely not be possible. Because of the tool, I need to adjust every mesh of structures to face the Forward X direction to be detected properly. Can anyone provide any suggestions on how to make this more modular so I don’t need to adjust the pivot of every object.

Here is the part of the code that controls the detection.

```
//check if these objects face the camera
float _relativeDirection = FVector::DotProduct(_SceneComponent->GetForwardVector(), GetWorld()->GetFirstPlayerController()->PlayerCameraManager->GetActorForwardVector());

if (_relativeDirection >= 0 || _SceneComponent->ComponentHasTag("Dollhouse_Always"))
{
  _SceneComponent->SetVisibility(false);
}
else
{
  _SceneComponent->SetVisibility(true);
}
```
