# Using Force to push player character along a sloped surface (player needs to be able to slide up and down the slope and generate speed)

**URL:** <https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, Blueprint, question\
**Created:** [November 21, 2023, 2:27pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226 "2023-11-21T14:27:38Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonNeptune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonNeptune](https://forums.unrealengine.com/u/JasonNeptune)\
**Post date:** [November 21, 2023, 2:27pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/1 "2023-11-21T14:27:38Z")

</div>

Hey Community,

Thanks in advance to anyone that can assist me I really appreciate it!

So I’m trying to create a physical force that will push the player character along a sloped wall. I’ve tried using a physics thruster but I can only get it to move objects and not the character. Ideally I would like to set the blueprint so that when the player enters this force zone they enter a slide and is pushed along the surface and can gain velocity while moving. any assistance as to what physics functions I should be using to achieve this effect.

Thank you!!

---

<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:** [November 21, 2023, 3:51pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/2 "2023-11-21T15:51:26Z")

</div>

Even without using any script whatsoever, with just those two:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/a/a3ae8cb0ca41987f3677af2c0460360fe3bb09e0.png)

Gets you:

Is this good enough or do you need actual zones that propel the player in a specific direction?

* * *

You can derive slope form the floor:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/f/3bfb5304350ac66beed93a500d816fdab1fc9ae9.png)

---

<div class="post-metadata">

**Author:** ![JasonNeptune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonNeptune](https://forums.unrealengine.com/u/JasonNeptune)\
**Post date:** [November 21, 2023, 4:14pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/3 "2023-11-21T16:14:11Z")

</div>

Hey Firstly thanks so much for helping me out!

Thats the idea but rather then falling down a slope and sliding. I want the character to be pushed along a horizontal sloped wall. like in this picture…

 ![Screenshot 2023-11-22 at 12.08.43 am](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/f/54fa42deeb5b41e09b2ad63a01f4abfd54377549.jpeg)

The wall runs for around 30m and I want the character to be pushed along the wall. While having control of their movement up and down. Hoping that when they move up or down it generates speed along the wall.

---

<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:** [November 21, 2023, 4:16pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/4 "2023-11-21T16:16:37Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/c/44c700c3e33f144e455a934aea3e3edf7bf55a47.jpeg)

The player goes 🔴 right and can shift 🟢 up & down?

---

<div class="post-metadata">

**Author:** ![JasonNeptune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonNeptune](https://forums.unrealengine.com/u/JasonNeptune)\
**Post date:** [November 21, 2023, 4:22pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/5 "2023-11-21T16:22:47Z")

</div>

Yeah thats the idea and jump from the top and be carried along the wall so like they are sliding along a wind tunnel but have control of their movements

---

<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:** [November 21, 2023, 4:24pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/6 "2023-11-21T16:24:46Z")

</div>

> [@JasonNeptune](#):
>
> player enters this force zone they enter a slide and is pushed along the surface and can gain velocity while moving

This part makes more sense now! Lemme have a think.

---

<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:** [November 21, 2023, 9:29pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/7 "2023-11-21T21:29:08Z")

</div>

> [@JasonNeptune](#):
>
> the top and be carried along the wall so like they are sliding along a wind tunnel but have control of their movements

This part sounds like it’s just this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/5/49508ca1fa1646709ed31174af2437f323c35e7e.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/e/60e5da380326b5bdd362a668467ff4b188ff2e87.jpeg)

> Hoping that when they move up or down it generates speed along the wall.

Not sure what to think about this bit, though. How does it work? The faster the player wiggles around up and down, the faster they slide along?

---

<div class="post-metadata">

**Author:** ![JasonNeptune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonNeptune](https://forums.unrealengine.com/u/JasonNeptune)\
**Post date:** [November 22, 2023, 3:07am UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/8 "2023-11-22T03:07:35Z")

</div>

thats what I’m looking for thank you! The idea is to be able to add these force zones along the wall so that when you move up and down you pump into and out of them so they push you along the wall. So its like a controlled wall slide with more player control, if that makes sense. So from here I should be able to add a slide animation and they will be in a sliding position instead of running?

As for building the windtunnel. I’m at this stage but can’t find "On Component Begin Overlap (Box) this is where I’m at…

 ![Screenshot 2023-11-22 at 1.49.39 pm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/7/327490c13f9bf1d597edabbdbeaf20aaf839140c.png)

Again really appreciate the help when I finish the game your getting a free copy.

---

<div class="post-metadata">

**Author:** ![JasonNeptune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonNeptune](https://forums.unrealengine.com/u/JasonNeptune)\
**Post date:** [November 22, 2023, 5:55am UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/9 "2023-11-22T05:55:12Z")

</div>

then this is my viewport view…

 ![Screenshot 2023-11-22 at 1.52.55 pm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/6/e3672ff9ab5d44b0f1ec9b000ffd06a380665e12.jpeg)

---

<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:** [November 22, 2023, 7:59am UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/10 "2023-11-22T07:59:15Z")

</div>

> [@JasonNeptune](#):
>
> can’t find "On Component Begin Overlap (Box)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/a/a2a5135940dda120a1eaf5da0006f70e0543c11c.png)

Or you can search:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/3/933ddc3b999a8b62a1528ed3da92fd05b1c5c356.png)

But actor overlap would work, too. Component is more granular in case you have more than one.

---

<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:** [November 22, 2023, 8:05am UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/11 "2023-11-22T08:05:57Z")

</div>

> [@JasonNeptune](#):
>
> The idea is to be able to add these force zones along the wall so that when you move up and down you pump into and out of them so they push you along the wall.

Somehow I still do not understand how this is supposed to work. Can we see a sketch? A rough diagram with some wonky arrows?

At this point I feel like you want to constraint the plane of movement of the player somehow. There’s a lot of nuance that can be built into this, ofc, depending on how much control is needed. Or perhaps the end result should be closer to:

But the player can wiggle around a wee bit?

---

<div class="post-metadata">

**Author:** ![JasonNeptune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonNeptune](https://forums.unrealengine.com/u/JasonNeptune)\
**Post date:** [November 24, 2023, 5:04pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/12 "2023-11-24T17:04:32Z")

</div>

I Managed to get the desired effect by sliding along the wall while adjusting the Walking speed parameters so that the character continues moving forward even after you stop pressing forward that way they kind of drift along the wall. Like a controlled, Pushed wall slide. Thank you so much for your help your a champion!

I’m sure my next obsticle is just around the corner 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 24, 2023, 5:05pm UTC](https://forums.unrealengine.com/t/using-force-to-push-player-character-along-a-sloped-surface-player-needs-to-be-able-to-slide-up-and-down-the-slope-and-generate-speed/1409226/13 "2023-12-24T17:05:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
