I read the code of moving the capsuleCollider,Hm are you able to reproduce this in the demo scene at all? I tested with the same acceleration values and slopes seem fine. One thing I've found that's helped with slopes in Unity in general is using a zero-friction physic material on the character's collider, so you could try applying one to the CapsuleCollider.
I would strongly advise against messing around with any of the movement/collision detection code. It can easily end up causing other unexpected issues elsewhere.
Have you been able to reproduce it in the demo scene? As I said, I couldn't see the issue happening when I tried using the same values. There are a few other physics-related settings within Unity that you can try modifying:
- Add a zero-friction physics material to the slope collider (with "friction combine" mode set to "minimum")
- Try setting the "collision detection" mode on the Rigidbody to "Continuous"
- If your slope is using a plane/quad collider, try using a boxcollider instead to increase its width
- Increase the "Default Max Depenetration Velocity" value in your project's Physics settings
It's a pity that i don't use any unity physics's collision, i just use the ray-detection and capsule-sweep-detection just as this project do...I would strongly advise against messing around with any of the movement/collision detection code. It can easily end up causing other unexpected issues elsewhere.
Have you been able to reproduce it in the demo scene? As I said, I couldn't see the issue happening when I tried using the same values. There are a few other physics-related settings within Unity that you can try modifying:
- Add a zero-friction physics material to the slope collider (with "friction combine" mode set to "minimum")
- Try setting the "collision detection" mode on the Rigidbody to "Continuous"
- If your slope is using a plane/quad collider, try using a boxcollider instead to increase its width
- Increase the "Default Max Depenetration Velocity" value in your project's Physics settings
The latest version doesn't appear this problem. Thank you for reply~Yeah I tested in the demo with those exact settings and it seems to work fine for me. The character just runs up the slope. Are you on the latest version of UCC? Have you tried my other suggestions?