# Stop raycast from going through wall

**URL:** <https://forums.unrealengine.com/t/stop-raycast-from-going-through-wall/692627>\
**Category:** Blueprint\
**Tags:** Raycast, unreal-engine, UE5-0, question, Blueprint\
**Created:** [November 17, 2022, 8:35am UTC](https://forums.unrealengine.com/t/stop-raycast-from-going-through-wall/692627 "2022-11-17T08:35:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 17, 2022, 12:33pm UTC](https://forums.unrealengine.com/t/stop-raycast-from-going-through-wall/692627/4 "2022-11-17T12:33:13Z")

</div>

Multitrace is for penetrating overlapping obstacles.

* * *

Consider `Pawn Sensing` instead.

- in the Skelly:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a0659a30d6cff3c41de531d7dc1aa8622851865.jpeg)

- in the Player:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/8/d98e8dbdbebac8e65b6a46d96587eb7e65e421a0.jpeg)

Can be improved, surely.

* * *

For something more elaborate and with more control, `dot product`:

> [@Weeping Angels effect](https://forums.unrealengine.com/t/weeping-angels-effect/432807/5):
>
> Maybe it’s not about pausing anything at all per se. Perhaps it’s just about gating the statue’s Tick so it does not execute a part of its script. This simple approach seems to work well enough. Statues follow player: Until the player looks at them: [[Image from Gyazo]](https://gyazo.com/6e36b8f2222be449978461b851dba8f5) There might be a more elegant solution, though.

Have a look at the thread. Some unorthodox (just messing around with stuff) methods there.

---

_[View the full topic](https://forums.unrealengine.com/t/stop-raycast-from-going-through-wall/692627)._
