# 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:** 20\
**Page:** 1

<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 4, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/1 "2015-08-04T22:57:41Z")

</div>

Hello everyone, I have a room that slowly decreases in size, eventually smashing the player. The problem is that while the walls will push the player, they wait until he is about half way through the wall, and then jerk him forward, and sometimes don’t push the player at all. This works fine with meshes I have in my scene, as they are smoothly pushed, but not with my player. I have looked around for sleeping, and a few other things that may impact this, but have found nothing. My play DOES get pushed smoothly if the player is walking into the wall, but does not while standing still. How can I fix this?

---

<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 6, 2015, 10:56am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/2 "2015-08-06T10:56:43Z")

</div>

By “meshes” do you mean static meshes or did you build them using the BSP brush?

~ 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 6, 2015, 4:47pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/3 "2015-08-06T16:47:11Z")

</div>

> [@Jason Wanderer;349710](#):
>
> By “meshes” do you mean static meshes or did you build them using the BSP brush?
> 
> ~ Jason

They are just actors that I spawned that contain meshes.

---

<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 6, 2015, 7:34pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/4 "2015-08-06T19:34:01Z")

</div>

Hmmm

Have you tried pushing the collision on the meshes out a bit further?

I had some clipping issues previously and that solved the problem.

~ 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 6, 2015, 7:58pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/5 "2015-08-06T19:58:12Z")

</div>

> [@Jason Wanderer;350071](#):
>
> Hmmm
> 
> Have you tried pushing the collision on the meshes out a bit further?
> 
> I had some clipping issues previously and that solved the problem.
> 
> ~ Jason

I am not having a problem with my meshes, it is working fantastic with my meshes, but not with my character, it’s as if my character’s collision is only updating once every 2 seconds when the walls push him.

---

<div class="post-metadata">

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

</div>

I’ve got the same problem. When an object pushes the character it is really jerky.

---

<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 7, 2015, 7:43pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/7 "2015-08-07T19:43:16Z")

</div>

> [@Jamendxman3;350092](#):
>
> I am not having a problem with my meshes, it is working fantastic with my meshes, but not with my character, it’s as if my character’s collision is only updating once every 2 seconds when the walls push him.

AH I see.

Sorry for that.

Ok, so what type of character are you using?

Can you post an image of the pawn (or whatever you are having the player control)?

~ Jason

---

<div class="post-metadata">

**Author:** ![HavocX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HavocX](https://forums.unrealengine.com/u/HavocX)\
**Post date:** [August 8, 2015, 9:16am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/8 "2015-08-08T09:16:33Z")

</div>

AFAIK this happens with the character in the FPS template.

---

<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 8, 2015, 6:35pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/9 "2015-08-08T18:35:40Z")

</div>

I’ve only ever had a problem with the character clipping.

I wonder if you could just extend the character collision space.

Can you post a image of the blueprint setup for the actor?  
It may just be a odd node of something of the sort.

~ 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 8, 2015, 10:54pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/10 "2015-08-08T22:54:07Z")

</div>

I doubt it, the problem only occurs when the player isn’t moving (no blueprint activity), do you still need the BP picture?

---

<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 9, 2015, 2:29am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/11 "2015-08-09T02:29:32Z")

</div>

Yeah, let me see it anyway if you can get one.

There’s got to be a problem with the blueprint if not the collision.

~ 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 9, 2015, 3:14am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/12 "2015-08-09T03:14:40Z")

</div>

Here is the movement:

 ![Untitled-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/6/6667daab2ddb6767dce88c1c1d709bb000d1c1b1.png)

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [August 9, 2015, 6:17am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/13 "2015-08-09T06:17:33Z")

</div>

How do you implement the moving walls? That is the important part.

I’m uncertain there is a real built in solution for this. A character’s collision is primarily implemented as part of the movement component, so the character’s movement will react correctly to external objects, but if the character is stationary and the external objects are moving, it won’t work.

To be honest I’m surprised it works properly for your meshes, unless they are physics objects?

I think probably you’ll have to simulate this yourself, by detecting for overlaps and moving your character accordingly.

---

<div class="post-metadata">

**Author:** ![Falconsoft](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Falconsoft](https://forums.unrealengine.com/u/Falconsoft)\
**Post date:** [August 9, 2015, 7:30am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/14 "2015-08-09T07:30:43Z")

</div>

I don’t know if this is correct but if I may estimate, that he is trying to use a flow of air coming from a vent pushing the player off a platform, like in knack, or Mario, or rayman, or sonic, either that or he is trying to use a wall that is like the ones in super Mario 64 world 1 painting #1 or super Mario 3d land.

---

<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 9, 2015, 11:47am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/15 "2015-08-09T11:47:02Z")

</div>

> [@kamrann;351753](#):
>
> How do you implement the moving walls? That is the important part.
> 
> I’m uncertain there is a real built in solution for this. A character’s collision is primarily implemented as part of the movement component, so the character’s movement will react correctly to external objects, but if the character is stationary and the external objects are moving, it won’t work.
> 
> To be honest I’m surprised it works properly for your meshes, unless they are physics objects?
> 
> I think probably you’ll have to simulate this yourself, by detecting for overlaps and moving your character accordingly.

So basically one would need to force character movement.

How about attaching a trigger to the meshes and upon entering the character slowly gets translated to the right or left?

Would that work?

~ Jason

EDIT: Jamendxman3, can we see your mesh as well as whatever blueprints your using to make it move?

---

<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 9, 2015, 6:35pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/16 "2015-08-09T18:35:45Z")

</div>

Here is a picture of my wall blueprint, I am just scaling the wall, but the issue also occurs if I move the wall instead.

 ![Untitled-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/6/116dcf81bbe911ee31abbc72567f1fdded04ae87.png)

My meshes are nothing special, just a set of numbers 0-9 with a standard box collision on the mesh, I just spawn them in my scene, and the walls push them closer to the center as they should. I also just tried adding an extra box collision to one of the sides of the walls, but the problem still occurs.

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [August 9, 2015, 7:53pm UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/17 "2015-08-09T19:53:43Z")

</div>

> [@Jason Wanderer;351873](#):
>
> So basically one would need to force character movement.
> 
> How about attaching a trigger to the meshes and upon entering the character slowly gets translated to the right or left?
> 
> Would that work?

Yes, I think using a trigger like that would be a reasonable way to achieve it.

Basically, (and I’m kind of guessing here from what I’ve seen, but I haven’t looked into the engine code in detail) as far as I know overlap states will only cause objects to move in the case of physics objects. Character movement also has code to push out of overlaps, but this is only really meant as a way to resolve states that shouldn’t really occur. Anyway it only takes effect when an attempt is made to move the character.

@Jamendxman3: Are your other meshes set to simulate physics? If not then I am missing something, as I wouldn’t expect them to get moved just as a result of rescaling a wall.

---

<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 10, 2015, 12:44am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/18 "2015-08-10T00:44:49Z")

</div>

> [@kamrann;352068](#):
>
> Yes, I think using a trigger like that would be a reasonable way to achieve it.
> 
> Basically, (and I’m kind of guessing here from what I’ve seen, but I haven’t looked into the engine code in detail) as far as I know overlap states will only cause objects to move in the case of physics objects. Character movement also has code to push out of overlaps, but this is only really meant as a way to resolve states that shouldn’t really occur. Anyway it only takes effect when an attempt is made to move the character.
> 
> @Jamendxman3: Are your other meshes set to simulate physics? If not then I am missing something, as I wouldn’t expect them to get moved just as a result of rescaling a wall.

You just brought up a good point.

It’s probably because the wall is simply being scaled.

Jamendxman3, It would be easier to just use a dynamic actor; basically a door system needs to be created.

Animate the mesh to move closer in when the player steps on a trigger.

I’d look into simulating physics as well.

~ 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 10, 2015, 3:23am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/19 "2015-08-10T03:23:22Z")

</div>

It is not because it is being scaled, I tested having the 4 sides of the wall just move individually without any scaling, the problem was the exact same. Also, what do you mean by looking into physics simulation?

---

<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 10, 2015, 10:53am UTC](https://forums.unrealengine.com/t/let-objects-push-the-character/37604/20 "2015-08-10T10:53:36Z")

</div>

> [@Jamendxman3;352266](#):
>
> It is not because it is being scaled, I tested having the 4 sides of the wall just move individually without any scaling, the problem was the exact same. Also, what do you mean by looking into physics simulation?

If the meshes are static you can simulate in-game physics with them.

I was agreeing with kamrann’s previous post about physics simulation.

Alright, wait, you said four sides.  
Are you enclosing the player in a box-like shape (one wall coming from the north, one from the south, etc.)?

Then again, I still go back to just using a trigger that will translate the player.  
It seems there is a collision problem and this seems like the easiest option.

~ Jason

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