- Home /
 
 
               Question by 
               JoaoShino · Apr 03, 2014 at 02:11 AM · 
                collisioncharactercontrollercapsule  
              
 
              How do I avoid CharacterController "sinking"? (See image)

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!
               Comment
              
 
               
              Answer by FlyingHighUp · Apr 03, 2014 at 03:52 AM
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.
Your answer