Search Unity

Character controller falls through ground

Discussion in 'Editor & General Support' started by whynotme, Jul 9, 2013.

  1. whynotme

    whynotme

    Joined:
    Mar 24, 2012
    Posts:
    54
    Hi,

    I just made a box as ground and another box with character controller. When I clicked play, the box with character controller falls through ground box, while if I keep change the character controller with box collider, the box stop when contact the ground. How does this happen? How can I fix this?

    Regards
     
  2. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Can you show us a screen shot of the situation? I think we'd need to see your hierarchy and perhaps a shot of your game view to see how you've set things up...

    I made two Unity primitive cubes: "Base Cube" and "Character Cube" and I added a Character Controller to the "Character Cube":


    ... and the Character Cube did not fall thru the Base Cube at run time.
     
  3. seoxtem1

    seoxtem1

    Joined:
    Jan 27, 2014
    Posts:
    1
    well i am new, but I had the same problem and I did what you just told him. It worked, but now I can't move the cube....
    Do you have any solution?
     
  4. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    If the object with the character controller on has already penetrated the ground during edit time, the object can fall though the ground, as physics won't detect the initial collision. Can you make sure your character object is resting on top of the ground plane, not in it?