My character, with a rigidbody and capsule collider attached, is slowly sliding down inclines that are not steep enough for this to make sense. For example, a large cube rotated so the angle is a little less than 45 degrees.
I’ve tried:
- Applying physics materials to both the object and character, with dynamic friction and static friction set as high as 1. All this seems to do is make walking up the incline really jerky; slide down persists
- Adjusting the various values in PhysicsManager; no change either
- Adjusting mass of character; no noticeable effect
I found this old thread, where one comment was “The smooth capsule edges tend to lend themselves to some extreme sliding, it’s very true. I tend to do a movement script that sets x and z velocity to zero if there are no movement keys pressed.”. This doesn’t seem like the best solution, since the character shouldn’t really be standing still on inclines that are very steep, and I can imagine there would be many other collision scenarios that would need to be manually checked for.
Is there no way to adjust this really? Are there any more elegant solutions or options? I would expect the physics material friction to deal with this.