Previously I only could dash forward based on the players forward vector, but now I want to dash based on ht players input direction. I tried this code but it just made me fly out the map:
Sounds like you want to bind variables to both MoveForward and MoveRight input axes and then read the value of those to determine what direction your input is in.
yea im trying to get their vectors and then implement the dash on it. This means that regardless of the player rotation or where its facing, i can dash based on the movement input, but i dont know how to call it
Oh. And another thing.
Add a FVector(0.0f, 0.0f, 20.0f) or something similar to your dash.
It adds a little height to your dash.
Else your character will directly collide with the floor again and stop.
Does LaunchCharacter multiple the characters current velocity by that input parameter?
If your char is flying out of the map then you are pushing in too big a value.
Normalize the current velocity and use that for your dash direction and multiply by your dash amount.