Is it a way to avoid the player to slide down from a slope?
See the video.
I want the player to stand on a slope when I'm not moving without sliding down. I tried to change the friction of the Physic Material to 1, but it didn't work. I found a way, but I don't know if it's a good solution.
I use 2 colliders on the Player. One where I have the friction of the Physic Material
to 0 and the other collider where I have the friction to 1. And when I'm moving, jumping and falling, I enable the collider with the friction = 0 and disable the other collider with the friction = 1. When the player is in the idle mode and of course on the ground, I do the opposite.
I just want to know if there is a better way to do it, or if this way is good enough.