# Character clipping through walls (Game Animation Sample)

**URL:** <https://forums.unrealengine.com/t/character-clipping-through-walls-game-animation-sample/2542812>\
**Category:** Character & Animation\
**Tags:** unreal-engine, question\
**Created:** [June 5, 2025, 6:06pm UTC](https://forums.unrealengine.com/t/character-clipping-through-walls-game-animation-sample/2542812 "2025-06-05T18:06:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [June 5, 2025, 7:30pm UTC](https://forums.unrealengine.com/t/character-clipping-through-walls-game-animation-sample/2542812/2 "2025-06-05T19:30:38Z")

</div>

Hey @EarthCK!

> [@EarthCK](#):
>
> The idea was to detect nearby obstacles and cancel movement input when hitting a wall

Instead of checking for nearby obstacles, you can check if the character is about to hit an obstacle using the movement vector.

Check out [this](https://forums.unrealengine.com/t/how-to-make-a-character-stop-walking-when-hitting-a-wall/2293715/2) post of mine to see how 😊

_(Also see my following posts under the same topic)_

Hope this helps! 😇

---

_[View the full topic](https://forums.unrealengine.com/t/character-clipping-through-walls-game-animation-sample/2542812)._
