# Launch Character

**URL:** <https://forums.unrealengine.com/t/launch-character/475332>\
**Category:** Character & Animation\
**Tags:** unreal-engine, question\
**Created:** [December 2, 2020, 7:54pm UTC](https://forums.unrealengine.com/t/launch-character/475332 "2020-12-02T19:54:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Z3r0skills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Z3r0skills](https://forums.unrealengine.com/u/Z3r0skills)\
**Post date:** [December 2, 2020, 7:54pm UTC](https://forums.unrealengine.com/t/launch-character/475332/1 "2020-12-02T19:54:31Z")

</div>

I have made a dash for my player that works as long as you have a velocity. If there is no directional movement the character doesn’t dash, example no directional input or if the character is colliding against another pawn. I’d like to be able to dash through the enemy. I do turn off the collision and it all works so long as the player isn’t already up against the other pawn when dashing. How to do I get the dash to launch the player in the last direction they were moveing in or the direction they have pressed on the joystick/keyboard?

---

<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:** [December 2, 2020, 8:02pm UTC](https://forums.unrealengine.com/t/launch-character/475332/2 "2020-12-02T20:02:29Z")

</div>

> How to do I get the dash to launch the  
> player in the last direction they were

Perhaps you could store velocity vector in a variable when you press Dash (only if velocity is \> 0). Next time you Dash, check if current velocity is 0; if it is, use the stored vector instead.

Would that work?

---

<div class="post-metadata">

**Author:** ![Z3r0skills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Z3r0skills](https://forums.unrealengine.com/u/Z3r0skills)\
**Post date:** [December 3, 2020, 12:45am UTC](https://forums.unrealengine.com/t/launch-character/475332/3 "2020-12-03T00:45:51Z")

</div>

I was thinking of doing that but ran out of time at lunch to test it. I also kind of assumed there would be a better approach of some kind. I’m very new to this stuff and still trying to learn.  
I tried to use add impulse but there was a mess of not having simulate physics enabled then the player would just ragdoll and fall through the terrain… so it seemed to cause more troubles than it would fix

 ![323734-untitled.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/b/8dbb0f32ff1b3dfa07dfaf5f9a80649ac930d63b.jpeg)

---

<div class="post-metadata">

**Author:** ![Z3r0skills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Z3r0skills](https://forums.unrealengine.com/u/Z3r0skills)\
**Post date:** [December 3, 2020, 1:00am UTC](https://forums.unrealengine.com/t/launch-character/475332/4 "2020-12-03T01:00:06Z")

</div>

![323728-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/6/046e5ffaa0f8d6740595421511766dda806b44ae.png)
