# How do I stop bouncing off a wall?

**URL:** <https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 17, 2022, 1:00pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117 "2022-02-17T13:00:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_931e9955](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_931e9955](https://forums.unrealengine.com/u/anonymous_user_931e9955)\
**Post date:** [February 17, 2022, 1:00pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/1 "2022-02-17T13:00:04Z")

</div>

I have created a simple grappling hook and I also have wall running in and FPS project but When ever I grapple to a wall my character just bounces off it how do I stop this

---

<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:** [February 17, 2022, 1:07pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/2 "2022-02-17T13:07:37Z")

</div>

Can you explain how you move the player with the grapple?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_931e9955](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_931e9955](https://forums.unrealengine.com/u/anonymous_user_931e9955)\
**Post date:** [February 17, 2022, 1:10pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/3 "2022-02-17T13:10:51Z")

</div>

I set the velocity of the player such that it would move towards the grapple point until It is within a certain range of the target (in this case 200 UE4 units) and then I add a little velocity to to the Z axis plus the earlier velocity

---

<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:** [February 17, 2022, 1:32pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/4 "2022-02-17T13:32:52Z")

</div>

> [@anonymous\_user\_931e9955](#):
>
> set the velocity of the player

This should be the velocity of the Character Movement Component - is this what you mean? Can you show the script? Is anything simulating physics?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_931e9955](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_931e9955](https://forums.unrealengine.com/u/anonymous_user_931e9955)\
**Post date:** [February 17, 2022, 1:41pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/5 "2022-02-17T13:41:12Z")

</div>

Yes the character movement velocity.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/b/e2bedcff679b6450ca13070c8ec0a70027bd9728.png)  
Here’s the script, Im taking the the initial direction for the grapple( its normalized) and then multiplying it for speed

---

<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:** [February 17, 2022, 1:51pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/6 "2022-02-17T13:51:39Z")

</div>

Hm, doing just this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/2/8a2bb801d59aad68dc9090e5d31e208cc671f8a2.png)

Produces expected, consistent results and no bouncing.

> I also have wall running

I’d inspect the way this is implemented / integrated. Can you test it without this mechanics - perhaps that would help narrow it down.

* * *

I actively had to ADD character wall bouncing to projects upon request.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_931e9955](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_931e9955](https://forums.unrealengine.com/u/anonymous_user_931e9955)\
**Post date:** [February 17, 2022, 2:01pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/7 "2022-02-17T14:01:01Z")

</div>

After a bit more test I figured out that this only happens if I hit the hook which is round, but I have turned all collision of on it and the issues persists. But adding an additional push towards the wall has completely stopped it. I think it might have been my velocity was too high. 5K

I turned off wallrunning and that fixed the issue so there is probably something in there that needs fixin

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_931e9955](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_931e9955](https://forums.unrealengine.com/u/anonymous_user_931e9955)\
**Post date:** [February 17, 2022, 2:10pm UTC](https://forums.unrealengine.com/t/how-do-i-stop-bouncing-off-a-wall/499117/8 "2022-02-17T14:10:20Z")

</div>

Found the cause, thanks for the help mate. I was changing plane constraints during wallrunning and for some reasons that made the velocities weird. Thanks for the help fren appreciate it.
