# What is causing Wall physics to push player up?

**URL:** <https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Components, question\
**Created:** [September 26, 2022, 5:58pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862 "2022-09-26T17:58:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anti-Wisdom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anti-wisdom/32/575220_2.png) [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Post date:** [September 26, 2022, 5:58pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862/1 "2022-09-26T17:58:42Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/1/3d1f2224950e545b6c8892de62b6575ae4638dae.jpeg "Player is pushed up by moving wall") ](https://www.youtube.com/watch?v=QNXxDsCWyCw)

What would be the best way to prevent the player from being moved up in this manner,  
and rather push the player to the sides?

I have already checked the collisions on either of the walls (these are also visible in the video) and nothing about their collision warrants the player moving upwards.  
My current theory is that it has to do with the Player’s own Capsule collision.

Moving walls like these are going to be a significant part of this game, so having an elegant solution will make all the difference 🙂

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [September 26, 2022, 6:42pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862/2 "2022-09-26T18:42:37Z")

</div>

Hi Anti-Wisdom,

What I think is happening here is the Capsule collision getting pinched between the moving wall and that column on the right.

If you stand in the exact middle of where that block is pushing do you still move upwards?

If not - the simplest solution might be to always have an opening just beyond those push blocks. Changing the collision of those columns to something smoother might help. (but I think it would still be possible to pinch) Another thought is to have logic in the push block that locks any upward movement when it touches the player. (In this situation, even if pinched and pushed into the column, physics should pop you out of the column in the most reasonable direction)

Let us know if any of those help!

---

<div class="post-metadata">

**Author:** ![Anti-Wisdom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anti-wisdom/32/575220_2.png) [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Post date:** [September 26, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862/3 "2022-09-26T19:21:25Z")

</div>

Yes, I know the column and moving wall are causing the movement, I meant more the reason why it chooses to push the player up of all directions, can you elaborate on ‘locking any upward movement’? I’ll try that next!

Sadly leaving an opening between the 2 meshes would only be a solution in this particular instance but our game will rely heavily on moving walls. There will be times where such an opening is not possible or practical 😕

---

<div class="post-metadata">

**Author:** ![Anti-Wisdom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anti-wisdom/32/575220_2.png) [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Post date:** [September 26, 2022, 8:21pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862/4 "2022-09-26T20:21:07Z")

</div>

Got it, for whatever reason, the solution in this post worked!

> [@Help me make a reactive capsule pushing system](https://forums.unrealengine.com/t/help-me-make-a-reactive-capsule-pushing-system/495114):
>
> In ways this thread / question will kind of be a spiritual sequel to the thread I did awhile back on the [moving wall](https://forums.unrealengine.com/t/moving-wall-cube-pushes-player-in-steps-and-not-smoothly-how-to-fix-solved/261418/24). To sum that thread up, the basic gist is that if any platforms push you HORIZONTALLY it causes the player to “jerk” and not be pushed smoothly, this is because of the SHAPE of the capsule component, the penetrating wall or platform having to reach the exact center of the bottom of the player’s capsule and then the player essentially teleporting ahead of the moving wall creating…

Once again it boiled down to the glitchy behaviour of Capsure Components.  
In short, in tick, move the character controller back and forth a bit, but in moving back enabling Sweep to perceive more accurate physics.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [September 26, 2022, 8:49pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862/5 "2022-09-26T20:49:01Z")

</div>

You can also taper the walls collision.  
Perfect fit at the top, bring it in at the bottom like 5cm. e.g. /

The sloped angle won’t snag the bottom of the capsule.

---

<div class="post-metadata">

**Author:** ![Anti-Wisdom](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anti-wisdom/32/575220_2.png) [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Post date:** [September 26, 2022, 8:51pm UTC](https://forums.unrealengine.com/t/what-is-causing-wall-physics-to-push-player-up/656862/6 "2022-09-26T20:51:42Z")

</div>

That’s a good one, I’ll keep that in mind if I end up having similar issues again!
