# Let objects push the character

**URL:** <https://forums.unrealengine.com/t/let-objects-push-the-character/37604>\
**Category:** Character & Animation\
**Tags:** unreal-engine\
**Created:** [August 4, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604 "2015-08-04T22:57:41Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [August 10, 2015, 4:38pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/21 "2015-08-10T16:38:02Z")

</div>

Yes, I am enclosing them in a box shape, each side moves towards the center, eventually smashing the player. Using a trigger seems unreliable as I do not have a constant speed at which the walls are moving, and the walls are also able to move outwards (rather than inwards) in order to reward the player.

---

<div class="post-metadata">

**Author:** ![Jason\_Wanderer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jason\_Wanderer](https://forums.unrealengine.com/u/Jason_Wanderer)\
**Post date:** [August 11, 2015, 4:28pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/22 "2015-08-11T16:28:03Z")

</div>

By no constant speed do you mean that all the walls are moving at different times and intervals on purpose.

Or is there a bug that’s making one slower than the other?

~ Jason

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [August 11, 2015, 5:44pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/23 "2015-08-11T17:44:42Z")

</div>

They are closing at a constant speed, and when the player achieves the objective inside of the walls, the walls lerp to an opening speed, and then switch back to the closing speed.

---

<div class="post-metadata">

**Author:** ![Jason\_Wanderer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jason\_Wanderer](https://forums.unrealengine.com/u/Jason_Wanderer)\
**Post date:** [August 13, 2015, 10:54am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/24 "2015-08-13T10:54:49Z")

</div>

> [@Jamendxman3;353406](#):
>
> They are closing at a constant speed, and when the player achieves the objective inside of the walls, the walls lerp to an opening speed, and then switch back to the closing speed.

OK, you know what I’m just going to make my own.

I’ll see if I get a similar problem with my setup.

~ Jason

---

<div class="post-metadata">

**Author:** ![Aumaan\_Anubis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aumaan\_Anubis](https://forums.unrealengine.com/u/Aumaan_Anubis)\
**Post date:** [October 23, 2016, 9:53am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/26 "2016-10-23T09:53:51Z")

</div>

It would be great if we could get a dev to look into this, it’s a frustrating limitation that’s hard to workaround. Anyone have any ideas on how to fix this?

---

<div class="post-metadata">

**Author:** ![EvilReFlex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilReFlex](https://forums.unrealengine.com/u/EvilReFlex)\
**Post date:** [August 6, 2020, 5:58pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/27 "2020-08-06T17:58:21Z")

</div>

Sorry for digging out this thread, but I also have this problem:

Up works without problem:

> <https://gfycat.com/ampleofficialcockroach>

But if I push a character to a side it looks like this:

> <https://gfycat.com/showyknobbycrocodileskink>

> <https://gfycat.com/deadverifiablegalapagossealion>

---

<div class="post-metadata">

**Author:** ![Thebottom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thebottom](https://forums.unrealengine.com/u/Thebottom)\
**Post date:** [August 16, 2020, 4:47pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/28 "2020-08-16T16:47:49Z")

</div>

I have the same problem, help!

---

<div class="post-metadata">

**Author:** ![NoticeableScout](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/noticeablescout/32/1109775_2.png) [@NoticeableScout](https://forums.unrealengine.com/u/NoticeableScout)\
**Post date:** [August 17, 2020, 1:45am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/29 "2020-08-17T01:45:57Z")

</div>

> [@EvilReFlex](#):
>
> Sorry for digging out this thread, but I also have this problem:
> 
> Up works without problem:  
> [https://gfycat.com/ampleofficialcockroach](https://gfycat.com/ampleofficialcockroach)
> 
> But if I push a character to a side it looks like this:  
> [https://gfycat.com/showyknobbycrocodileskink](https://gfycat.com/showyknobbycrocodileskink)  
> [https://gfycat.com/deadverifiablegalapagossealion](https://gfycat.com/deadverifiablegalapagossealion)

> [@Thebottom](#):
>
> I have the same problem, help!

Instead of reviving a 5 year old post, why didn’t you make your own?

---

<div class="post-metadata">

**Author:** ![Jason\_Wanderer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jason\_Wanderer](https://forums.unrealengine.com/u/Jason_Wanderer)\
**Post date:** [November 8, 2020, 2:10pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/30 "2020-11-08T14:10:57Z")

</div>

> [@EvilReFlex](#):
>
> Sorry for digging out this thread, but I also have this problem:
> 
> Up works without problem:  
> [https://gfycat.com/ampleofficialcockroach](https://gfycat.com/ampleofficialcockroach)
> 
> But if I push a character to a side it looks like this:  
> [https://gfycat.com/showyknobbycrocodileskink](https://gfycat.com/showyknobbycrocodileskink)  
> [https://gfycat.com/deadverifiablegalapagossealion](https://gfycat.com/deadverifiablegalapagossealion)

> [@Thebottom](#):
>
> I have the same problem, help!

Have either of you solved this issue yet or do you both still need help?

It probably would be a good idea to create your own threads in one of the development sections if you still need help.

---

<div class="post-metadata">

**Author:** ![williamslijp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@williamslijp](https://forums.unrealengine.com/u/williamslijp)\
**Post date:** [November 29, 2021, 4:13am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/31 "2021-11-29T04:13:52Z")

</div>

If you are using C++, and don’t mind dirty trick, then try edit your character.cpp. Find your “MoveForward(float Value)”  
Edit “AddMoveMentInput(Direction, Value)”, to “Value+0.0001”. (Or something smaller)  
I believe if this “Value” is not zero, it force to evalue collision every frame.  
Yes, this will move your character a bit forward overtime, but you keep it small enought, you probably won’t notice it.

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [December 2, 2021, 9:34pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/32 "2021-12-02T21:34:14Z")

</div>

I’m having exactly this same problem. It puzzles me how such a common situation doesn’t have a built in solution. In my case, I have this blocks coming out from the walls and I want them to push the player. The movement is very jerky, and to make it to work in an almost acceptable way, I had to make big collision boxes on the blocks (which is not viable).

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 2, 2021, 10:28pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/33 "2021-12-02T22:28:35Z")

</div>

There’s another active thread with around 5 different solutions.

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [December 2, 2021, 11:02pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/34 "2021-12-02T23:02:10Z")

</div>

Could you please point me to it? Hard to find it because I don’t know exactly what to search for. I bumped into this thread while looking for something completely different.  
Thanks!

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 2, 2021, 11:04pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/35 "2021-12-02T23:04:00Z")

</div>

You aren’t Wong. The title is anything but descriptive.

> [@Moving wall / cube pushes player in steps and not smoothly, how to fix? \[SOLVED\]](https://forums.unrealengine.com/t/what-causes-the-effect-in-this-video/261418/42):
>
> I will surely get to C++ eventually, don’t know if I am ready for that yet lol. 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 t…

---

<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, 11:13pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/36 "2021-12-02T23:13:13Z")

</div>

> [@MostHost\_LA](#):
>
> The title is anything but descriptive.

Agreed, ok I changed it to something more suitable.

---

<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, 11:26pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/37 "2021-12-02T23:26:52Z")

</div>

Agreed, this seems to be a very common problem, and as it was pointed out to me it seems to mainly be because of the shape of the capsule component, as the capsule is a cylinder which has domes on both ends. What seems to happen is the moving colliders have to reach the exact center of the bottom of the capsule of the player that is standing on the ground, when this happens it seems the player is pushed out of the overlap in a very herky jerky way, and not smoothly as soon as “any” of the capsule compenent overlaps. Trying to find a solution. [Moving wall / cube pushes player in steps and not smoothly, how to fix?](https://forums.unrealengine.com/t/moving-wall-cube-pushes-player-in-steps-and-not-smoothly-how-to-fix/261418)

[Previous page](https://forums.unrealengine.com/t/let-objects-push-the-character/37604.md?page=1)
