# How to have the player NOT move when on a moving surface

**URL:** <https://forums.unrealengine.com/t/how-to-have-the-player-not-move-when-on-a-moving-surface/827656>\
**Category:** World Creation\
**Tags:** unreal-engine, Physics, question, Blueprint\
**Created:** [March 27, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/how-to-have-the-player-not-move-when-on-a-moving-surface/827656 "2023-03-27T15:04:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Risth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Risth](https://forums.unrealengine.com/u/Risth)\
**Post date:** [March 27, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/how-to-have-the-player-not-move-when-on-a-moving-surface/827656/1 "2023-03-27T15:04:58Z")

</div>

Hello  
im new to unreal and I wanted to make an endless runner but i have a problem :  
my obstacles are moving toward the player, which can only jump, it’s not actually moving  
so when the player jump on an obstacle like this one

 ![ScreenShot00001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/e/44ede927df2e41d293a3b2f6cf8ff59af3a3d8f7.jpeg)

it stays on the surface and get dragged to the left, while i want the obstacle to “slide” under the player

How do i do that ? I tried messing with the friction but it doesn’t seem to work

In another way, i think the most convenient solution for what i’m trying to achieve would be to have my player always move toward the spawn point on the X axis (like in a AI move to), so that it “keeps up” with the camera after being pushed by an obstacle, but i dont know how to do that 😕

---

<div class="post-metadata">

**Author:** ![Bho2412](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bho2412](https://forums.unrealengine.com/u/Bho2412)\
**Post date:** [March 27, 2023, 3:13pm UTC](https://forums.unrealengine.com/t/how-to-have-the-player-not-move-when-on-a-moving-surface/827656/2 "2023-03-27T15:13:55Z")

</div>

There is a node called enable charachter movement. Whenever that objects overlaps with your chars charachter disable its movement.

---

<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:** [March 27, 2023, 3:20pm UTC](https://forums.unrealengine.com/t/how-to-have-the-player-not-move-when-on-a-moving-surface/827656/3 "2023-03-27T15:20:20Z")

</div>

> [@Risth](#):
>
> my obstacles are moving toward the player, which can only jump, it’s not actually moving […]it stays on the surface and get dragged to the left, while i want the obstacle to “slide” under the player

Try this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/6/8164b26a70a39070367a93e915e12bd5b1e912c7.png)

Depending on how the world is aligned, you may need another axis. And you will need to decide what happens when the player fails to jump high enough in time and gets hit with the side.

---

<div class="post-metadata">

**Author:** ![Risth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Risth](https://forums.unrealengine.com/u/Risth)\
**Post date:** [March 27, 2023, 11:24pm UTC](https://forums.unrealengine.com/t/how-to-have-the-player-not-move-when-on-a-moving-surface/827656/4 "2023-03-27T23:24:38Z")

</div>

Thank you so much it worked ! you just saved my life
