Thxxx! I would really like this code! I had problems with the ground check at different times... The next will be better!
Just download the package and import it to a new project.
I commented it as much as could for time sake.
https://tlsaxt.itch.io/slopehandling