Launch player at the same velocity but in a different direction (Super Mario GroundPound Leap)

Cat419
Sun, 14 Nov 2021 18:28:31 +0000
World Creation

I’m trying to give the player the ability to launch themselves at the same velocity with some extra height.
This works relatively well, however it does not account for the player changing the direction they are facing right before launching. This means that the player can be launched backwards if they spin around quick enough which is not desirable.

How do I make it so that they are always launched forward but still maintain their previous velocity?

P.S. The desired result is very similar to the GroundPound leap in the 3d Super Mario games

4 posts - 1 participant