# Going through walls

**URL:** <https://forums.unrealengine.com/t/going-through-walls/442977>\
**Category:** World Creation\
**Tags:** unreal-engine, Collision, walls, question\
**Created:** [February 8, 2019, 1:06pm UTC](https://forums.unrealengine.com/t/going-through-walls/442977 "2019-02-08T13:06:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1badcb801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1badcb801](https://forums.unrealengine.com/u/anonymous_user_1badcb801)\
**Post date:** [February 8, 2019, 1:06pm UTC](https://forums.unrealengine.com/t/going-through-walls/442977/1 "2019-02-08T13:06:28Z")

</div>

Hi, just want to ask if there is other/better method of restricting my player to get through walls. My player’s movement is lerping to a new location and i have set a box collision near it to detect/prevent going though walls. Thank you very much in advance. .

 ![267920-askdev.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/f/49f155a17001a3418dbad4207b690cfe84da4665.jpeg)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [February 8, 2019, 1:09pm UTC](https://forums.unrealengine.com/t/going-through-walls/442977/2 "2019-02-08T13:09:51Z")

</div>

Check the Sweep box, it will prevent from clipping.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1badcb801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1badcb801](https://forums.unrealengine.com/u/anonymous_user_1badcb801)\
**Post date:** [February 8, 2019, 11:10pm UTC](https://forums.unrealengine.com/t/going-through-walls/442977/3 "2019-02-08T23:10:28Z")

</div>

Thank you very much. However, I am having a hard time finding good sample that I can use.

Update: Ran into a bug causing to end an overlap when my collision box collide to another static mesh. Made my tile do restrictions to my player getting through walls and hoping the performance wouldn’t be affected by having too many collision box. I’m just trying to make a board game. Better idea for this would be gladly appreciated. Thank you.

 ![267968-askdev.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/9/cc954c33c22dc8a4562a7f28ec3f8ac24d569760.png)

---

<div class="post-metadata">

**Author:** ![AliceHalley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alicehalley/32/1033330_2.png) [@AliceHalley](https://forums.unrealengine.com/u/AliceHalley)\
**Post date:** [February 10, 2019, 7:10pm UTC](https://forums.unrealengine.com/t/going-through-walls/442977/4 "2019-02-10T19:10:10Z")

</div>

Definitely Line/Sphere Traces. Simply fire a Trace in the direction you want to move, run it though a branch to see if it hit anything, if false, move along.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1badcb801](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1badcb801](https://forums.unrealengine.com/u/anonymous_user_1badcb801)\
**Post date:** [February 14, 2019, 3:48am UTC](https://forums.unrealengine.com/t/going-through-walls/442977/5 "2019-02-14T03:48:42Z")

</div>

Thank you very much sir Raxs! Need to learn more about the line trace but i do get the idea. I made my player to have a trigger box in front of him to check if it is overlapped and not make it move that way.

 ![268566-asdasd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/c/d2c3507d3fa2928ed9e54145fc4ebe66c8ff9523.png)

---

<div class="post-metadata">

**Author:** ![AliceHalley](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alicehalley/32/1033330_2.png) [@AliceHalley](https://forums.unrealengine.com/u/AliceHalley)\
**Post date:** [February 14, 2019, 10:46am UTC](https://forums.unrealengine.com/t/going-through-walls/442977/6 "2019-02-14T10:46:57Z")

</div>

No problem. That seems to work, and assuming it continues to, you may not need to change it. But if you are ever interested here’s a video of “Box tracing” (one of the many tracing methods) and would be ideal for your circumstances.

FYI, the rest of Mathew's channel is great if you ever want to know what a node or feature does :)
