# What's the best approach on wall corners in a grid based building system?

**URL:** <https://forums.unrealengine.com/t/whats-the-best-approach-on-wall-corners-in-a-grid-based-building-system/499638>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, UE4\
**Created:** [February 18, 2022, 5:19pm UTC](https://forums.unrealengine.com/t/whats-the-best-approach-on-wall-corners-in-a-grid-based-building-system/499638 "2022-02-18T17:19:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEV7591](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DEV7591](https://forums.unrealengine.com/u/DEV7591)\
**Post date:** [February 18, 2022, 5:19pm UTC](https://forums.unrealengine.com/t/whats-the-best-approach-on-wall-corners-in-a-grid-based-building-system/499638/1 "2022-02-18T17:19:02Z")

</div>

When the North/South wall intersects the East/West one I end with 2 walls overlapping.  
Possible solutions I thought so far:  
1- Having a dedicated building part for corners (not fancy)  
2- Having a “shorter” wall that can fit in that situation, this would be optimal but I can’t think of a reliable way to detect it’s an intersection.  
Thoughts?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 18, 2022, 7:20pm UTC](https://forums.unrealengine.com/t/whats-the-best-approach-on-wall-corners-in-a-grid-based-building-system/499638/2 "2022-02-18T19:20:56Z")

</div>

You could detect if two wall are overlapping ( a lot ), and place a sort of ‘corner pillar’ piece, which hides the join.

---

<div class="post-metadata">

**Author:** ![DEV7591](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DEV7591](https://forums.unrealengine.com/u/DEV7591)\
**Post date:** [February 18, 2022, 8:26pm UTC](https://forums.unrealengine.com/t/whats-the-best-approach-on-wall-corners-in-a-grid-based-building-system/499638/3 "2022-02-18T20:26:47Z")

</div>

Hey thanks, that’s not really the problem.

Actually when my system detects overlapping it forbids item placement, otherwise player could place a wall where there is another already, just to mention an example.  
I’m not sure if this is the right approach but it’s what came to my mind when I coded it.
