Handling slopes with KinematicBody3D

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

I cannot figure out how to make a KinematicBody3D work consistently on slopes. The behaviour im aiming for, is that no horizontal movement is ever caused by a slope, with one exception being falling down on a too steep slope, which should make the player fall along it.

This is starting to seem very ambitious, because i can’t even figure out standing still on a slope. I have tried both move_and_slide, and move_and_slide_with_snap with stop_on_slope. But that doesn’t work properly, not completely sure why, but i think it’s because my movement isn’t spontaneous. I also tried not applying any gravity while grounded, but the move_and_slide functions still slided me for some wicked reason. I have concluded that i don’t understand them. So my question is: is there a built in way to do this, or do i have to make it myself using move_and_collide? Thanks.