Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

I read about this function in the documentation,
and there they talked about another simpler way,
one might even say an elementary one.
Just change the Collision Shape of the body to Ray Cast and the head
It's probably hard to understand me, but here's the documentation:
https://godotengine.org/article/godot-31-will-get-many-improvements-kinematicbody