Search Unity

2D-Game - Ignoring collision in one direction of the ground

Discussion in 'Scripting' started by Kaze_Senshi, Mar 4, 2012.

  1. Kaze_Senshi

    Kaze_Senshi

    Joined:
    Feb 19, 2012
    Posts:
    243
    Hello guys, anyone have any idea how to ignore the collision only in one direction. For example, my character is under the ground and need to jump through it to climb up, without crush the head in the plataform, like the classic 2D plataformer games. Also I wanting to make it ignore the collision when pressing "down+jump" and fall through this plataform.

    Thanks
     
  2. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
  3. Kaze_Senshi

    Kaze_Senshi

    Joined:
    Feb 19, 2012
    Posts:
    243
    Oh nice, I used your idea plus one that I read in the topic that you showed. Thank you
     
  4. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    great.

    :]
     
  5. d2clon

    d2clon

    Joined:
    Aug 19, 2017
    Posts:
    19