Launching Charactor Off From Ramp/Slope

I’m trying to make a sliding mechanic in which the character launches off from ramps when sliding ( shown as green in the image ), but the character is glued to the ground ( shown as red ). I think it has something to do with the Z velocity being 0 the whole time while in walking state.

The current method I’m using is by changing the friction value and walkable angle during the sliding state.
slide

1 Like

Yep. I’d like to know this too (for 3D though).

I did it

I’ve come up with a solution, I set the character movement mode to flying during the sliding state with the impulse to mimic the gravity.
Note that sliding upwards and downwards has a different impulse force to help the character accelerate and launch off ramps, and make sure to have a speed limit and smooth acceleration, or you will be flying at Mach 10

The result is quite okay; at least I managed to make the inertia feel good and believable after tuning some force values.

Feel free to leave any efficient solution.

I managed to make it work, check it out.

1 Like

Awesome! Thanks for sharing!