How do I avoid CharacterController "sinking"? (See image)

alt text

I’m using a CharacterController for this, and I don’t want the capsule to collide like this, but… it HAS to be a capsule, so…
I made a script for slope sliding(using the colliding plane’s normal), wich makes it even worse, because it happens to slide automatically and fall in the case of the image!
To describe better, I would like this to collide exactly like a cube!

Thanks!

It has to be a capsule? You could try adding a child Gameobject, then attach and set up a box collider that covers over your capsule. You may need to change the layer of the capsule though.

Then again, this may not be a ideal solution if this isn’t a 2D game.