Howdy folks (I'm new to Unity c:), I am trying to have some movement working properly for both slopes and grounded movement!
I have tried setting current speed as a separate variable that is then applied to the movement input, slope angle, and gravity.
However it's causing deceleration to not function, as there is a sudden stop, when it should be stopping gradually. And another situation such as when the player is on a slope will slowly climb up as if current speed is still building up, when it should be seamlessly carrying the momentum without hitches.
https://gdl.space/odajorabag.cs