0 votes

When using KinematicBody2D, most physics is going to be handled by code. However, for some reason, when using it on platform like games, there's a little friction on moving. If I move my char to the left or right and release the button, the player won't stop immediately, but instead it will have a little deceleration until stop. This behaviour can be seen in the "2D Kinematic Character Demo" and "2D Plarformer Demo", both available as templates on Godot.

This, however, don't happen with topdown view. As seen on "2D Kinematic Collision Demo", releasing the button will make the player stop suddenly, without deceleration.

My question is: how may I make my player to have a little deceleration like in platform case?

in Engine by (17 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.