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.
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