Hey all! I've been attempting to replicate the old source style of movement (strafing, bhopping, surfing) in Godot 4, but I've run into an issue with slide collisions in move_and_slide. Surfing is the main problem right now since the slide collisions just make the player character slow down and drop off the slope, whereas in Godot 3, this was not a problem.
The only fix I've managed to find uses slide on the velocity along the normal of the slope, but this locks your height on the slope and does not allow for going back up the slope.
var collided := move_and_slide()
if collided and not get_floor_normal():
var slide_direction := get_last_slide_collision().get_normal()
velocity = velocity.slide(slide_direction)
Is there any way I'm able to get the old form of move_and_slide back into Godot 4? Or are there any workarounds for this?
Thanks in advance 😃