I’m making a 2D platformer and I want my player to smoothly transition from moving horizontally on the ground to moving vertically on the wall (same velocity) while still pressing the direction key. If the direction key is unpressed, then the player should just fall (gravity = original gravity) or if the jump key is pressed, the player should jump in the opposite direction perhaps to an adjacent wall.
I’ve tried using a Linecast to detect the wall, setting the gravity scale to 0 and adding vertical velocity, but I don’t get the effect i need. Any help and advice would be great. Thank you!