When I go down slopes with character controller, if the speed is too high, the character just flies off the slope and lands at the bottom. I want my character to "stick" to the slope rather then just jump of it. I came up with code to do so, but it didn't turn out as I planned. Now the character just slides on the slope when I stop pressing the arrows (not staying at its place on the slope).
Physics.Raycast (transform.position, Vector3.down, out hit); transform.position = transform.position + new Vector3(0f, distance - hit.distance, 0f);
Thanks for the help, i couldn't figure this out all day.