stop 3D KinematicBody moving up slopes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RedBlueCarrots

I’m writing a player movement script, and I’m having a bit of an issue with slope interactions.

If I currently continually move into a slanted wall, say 60 degrees, I will slide upwards for one frame, before moving back down to the floor. This repeats very quickly, which makes it look like jittering.

I was wondering if there were any simple solutions to fix this jittering? Or more specifically, stop sliding up with slope in the first place in move_and_slide_with_snap() (interact like a 90 degree wall), but still be able to slide down if player lands on the wall from above.