Controlled slip(KinematicBody2D)_V.2.0

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

Hello!
I want to ask if it is possible to stop sliding (move_and_slide) before the character collides with the object and without using movement (and also without using the Timer - to check the elapsed time during sliding)
I’m interested in exactly stopping while sliding with the calculation of how much my character drove during (for example, in pixels)

I understand that the question has been posed incorrectly, but I hope you understand me