# Stop walking into walls?

**URL:** <https://forums.unrealengine.com/t/stop-walking-into-walls/488947>\
**Category:** Character & Animation\
**Tags:** walking, unreal-engine, question\
**Created:** [September 18, 2021, 3:16pm UTC](https://forums.unrealengine.com/t/stop-walking-into-walls/488947 "2021-09-18T15:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astaraa](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astaraa/32/1194560_2.png) [@Astaraa](https://forums.unrealengine.com/u/Astaraa)\
**Post date:** [September 18, 2021, 3:16pm UTC](https://forums.unrealengine.com/t/stop-walking-into-walls/488947/1 "2021-09-18T15:16:22Z")

</div>

I haven’t been able to find a simple way to stop movement animations when I walk into a wall (using basic third person movement), and resume when walking away. On capsule component hit, I’ve tried a line trace for world static object, but I can’t seem to get the logic right.

---

<div class="post-metadata">

**Author:** ![Debaucher](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/debaucher/32/482342_2.png) [@Debaucher](https://forums.unrealengine.com/u/Debaucher)\
**Post date:** [September 18, 2021, 3:27pm UTC](https://forums.unrealengine.com/t/stop-walking-into-walls/488947/2 "2021-09-18T15:27:07Z")

</div>

Try using these nodes in this fashion

![348950-screenshot-2021-09-18-112615.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/3/f935fc0e750a32749c2280682e974336cdfef687.png)
