# How to make character stop when facing the wall

**URL:** <https://forums.unrealengine.com/t/how-to-make-character-stop-when-facing-the-wall/829481>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 28, 2023, 7:30am UTC](https://forums.unrealengine.com/t/how-to-make-character-stop-when-facing-the-wall/829481 "2023-03-28T07:30:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 29, 2023, 11:19pm UTC](https://forums.unrealengine.com/t/how-to-make-character-stop-when-facing-the-wall/829481/4 "2023-03-29T23:19:16Z")

</div>

Hey @kHynnS!

So you can get the character’s velocity and use that with a multiply node to get your end point for your trace! 🙂

> [@Getting direction of characters movement based on velocity?](https://forums.unrealengine.com/t/getting-direction-of-characters-movement-based-on-velocity/449831/2):
>
> if I understand what you are asking… I think this is fairly straightforward… You are using a player Character actor… right? From the character movement component, draw out get velocity, then rotation from x vector… this will give you the direction as the world rotation of your characters velocity. PS. if you’d like to get the magnitude of velocity (speed) of your character just draw out vector length PPS. you can do a similar thing with a pawn or even an actor, it’s just that character has …

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-character-stop-when-facing-the-wall/829481)._
