Search Unity

skin width

Discussion in 'Editor & General Support' started by AlbertoT, Jan 2, 2010.

  1. AlbertoT

    AlbertoT

    Joined:
    Mar 27, 2009
    Posts:
    159
    Hello

    I am still making some tests before trying to develop a full game with Unity
    From the manual I read

    "Skin width Two colliders can penetrate each other as deep as their Skin Width "

    I have two characters with a character controller attached however they bump into each other
    The skin width is 20 % of the radius

    what am I doing wrong ?
     
  2. AlbertoT

    AlbertoT

    Joined:
    Mar 27, 2009
    Posts:
    159
    oohh...no answer ?
    I was ashamed to ask this question
    I assumed it was a silly beginner question

    I expected some thing like
    "Of course you forgot to..."
    Or even
    "You misunderstood the use of skinwidth.."
     
  3. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    The two colliders do ultimately bump into each other, but they can overlap as far as the skin width. In a game, it is often useful to have a wide "personal space" around a character, but also for two characters to be able to squeeze past each other so they don't get stuck in a doorway, say.
     
  4. AlbertoT

    AlbertoT

    Joined:
    Mar 27, 2009
    Posts:
    159
    Thanks for your answer
    The point is that the two colliders overlap beyond their skin width
    In other words the two characters themselves overlap
    Same centers coordinates ,I mean
     
  5. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Are you using the CharacterControllers' Move or SimpleMove methods to control the character? If you are just changing the transform's position, you don't get the collider effect.
     
  6. AlbertoT

    AlbertoT

    Joined:
    Mar 27, 2009
    Posts:
    159
    actually I was not using Move or simpleMove, thanks
     
    Ignacii likes this.