# Character sticks to ground during dash

**URL:** <https://forums.unrealengine.com/t/character-sticks-to-ground-during-dash/363736>\
**Category:** Character & Animation\
**Tags:** dash, unreal-engine, Blueprint, question\
**Created:** [July 12, 2016, 8:51am UTC](https://forums.unrealengine.com/t/character-sticks-to-ground-during-dash/363736 "2016-07-12T08:51:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon18280553](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon18280553](https://forums.unrealengine.com/u/anon18280553)\
**Post date:** [July 12, 2016, 8:51am UTC](https://forums.unrealengine.com/t/character-sticks-to-ground-during-dash/363736/1 "2016-07-12T08:51:55Z")

</div>

My character will dash fine across platforms that have gaps in between. I switched off gravity on dash, and enabled it back again to prevent him from falling during dash.

The dash is implemented by simply increasing character movement.

However, if there is a connecting ramp, as illustrated in the video, the character will stick to the ramp, and he will not fly off the platform.

Is there a way to switch off this “sticking to ground” while dash? I can’t seem to find any property in Character Movement that would do this.

---

<div class="post-metadata">

**Author:** ![Heidi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Heidi](https://forums.unrealengine.com/u/Heidi)\
**Post date:** [July 12, 2016, 9:54am UTC](https://forums.unrealengine.com/t/character-sticks-to-ground-during-dash/363736/2 "2016-07-12T09:54:26Z")

</div>

At the beginning of your dash, where you also set off gravity, probably On your KeyInput, you could also check for your pawns loction. Set a new variable float for your Z value, or new variable vector with (0,0,Z). During your dash (maybe in tick, if isdashing is true) you would check if your current pawn location Z is below your stored variable. If true set your pawns location to his current X and Y and your saved Z. This should solve your problem. However this whacky implementation will create odd behavour when dashing against ceilings.

Maybe you should also try a different mezhod than setting your character movespeed.  
Instead of setting off gravity you could try and build your own function that makes your player fly.  
Similar to how you move a camera (W,A,S,D,Panning,etc) in code, you could move your player and make him dash with that.

There is many different ways one would go about this.  
O  
Hope that helped.

Ps. Sorry for bad formatted text. Writing on phone.

---

<div class="post-metadata">

**Author:** ![anon18280553](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon18280553](https://forums.unrealengine.com/u/anon18280553)\
**Post date:** [July 12, 2016, 10:49am UTC](https://forums.unrealengine.com/t/character-sticks-to-ground-during-dash/363736/3 "2016-07-12T10:49:17Z")

</div>

Yup definitely…my other implementation was using Set World Location, which I felt was generally better implementation-wise. However, one thing I cannot overcome for this method is this; when the character hits a ramp of a certain angle, the dash will be slowed or stopped.

---

<div class="post-metadata">

**Author:** ![jacksonnexhip](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacksonnexhip/32/494650_2.png) [@jacksonnexhip](https://forums.unrealengine.com/u/jacksonnexhip)\
**Post date:** [September 13, 2023, 6:21am UTC](https://forums.unrealengine.com/t/character-sticks-to-ground-during-dash/363736/4 "2023-09-13T06:21:14Z")

</div>

Did you find a solution for this?
