# Moving wall / cube pushes player in steps and not smoothly, how to fix? \[SOLVED\]

**URL:** <https://forums.unrealengine.com/t/moving-wall-cube-pushes-player-in-steps-and-not-smoothly-how-to-fix-solved/261418>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [November 17, 2021, 10:21pm UTC](https://forums.unrealengine.com/t/moving-wall-cube-pushes-player-in-steps-and-not-smoothly-how-to-fix-solved/261418 "2021-11-17T22:21:53Z")\
**Posts on this page:** 1\
**Showing post:** 42

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [December 2, 2021, 10:43pm UTC](https://forums.unrealengine.com/t/moving-wall-cube-pushes-player-in-steps-and-not-smoothly-how-to-fix-solved/261418/42 "2021-12-02T22:43:29Z")

</div>

> [@MostHost\_LA](#):
>
> While that’s not at all a bad idea:  
> Do it in c++, I couldn’t encourage you more to so so…

I will surely get to C++ eventually, don’t know if I am ready for that yet lol.

> [@MostHost\_LA](#):
>
> What I was saying to do was to trigger the physics effect when touching the moving wall, and subsequently disabling it again based on character position over time.
> 
> Say, if 2 or 3 frames pass with the same character location, you know for sure you stopped being pushed. So turn the simulate back off.

I still think something could be or should be able to be done with that kind of approach, physics based or otherwise. Get the location and velocity of the wall, and if the player is overlapping (capsule or mesh) then do something, In what you just described it would be to turn physics on and apply a force when overlapped then turn off when not. Going back to earlier in this thread… if I apply this code below to the third person character.

 ![Image4](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/b/6b6b0865a1a5719cfb2c022f61fe08409d73d3bd.jpeg)

Then the player moves automatically at the same speed as the wall. [Desktop 20211118 - 21490202 on Vimeo](https://vimeo.com/647576290)

You will notice on that video that the stepping effect does not happen, but then the player is being pushed along, “offset”? all the time anyway.

Imagine then if that effect happened “just” when TPC overlapped the wall. As pointed out earlier in this thread, the problem is not when player jumps into the moving wall, as collision will cause the capsule to be blocked, and blocked smoothly, the problem then is when player Is Landed and is pushed by the wall, and the inherit shape of the capsule component causes this stepping effect.

---

_[View the full topic](https://forums.unrealengine.com/t/moving-wall-cube-pushes-player-in-steps-and-not-smoothly-how-to-fix-solved/261418)._
