Hi there Godot community!
I'm playing around with the
move_and_slide method on the KintematicBody2D node, and have stumbled upon some weird behavior. I made a Tilemap with a slope in it. The collision is a ConvexPolygonShape2D. When my player, which is a KinematicBody2D, moves up a slope, it kind of jumps up in the air. Here is a video to show it:
Here is what I think what happens: the player gets a horizontal and a vertical speed, because it has to move up the slope. When you stop moving, velocity.x becomes 0 but the velocity.y remains so the player seems to jump.
Code for the player is this:
Thank you in advance for helping me! It's been fun toying with this engine.