Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity Box Colliders Getting Caught On Each Other [SOLVED]

Discussion in '2D' started by Xregion, Aug 21, 2016.

  1. Xregion

    Xregion

    Joined:
    Jun 25, 2016
    Posts:
    3
    I've recently noticed that when my character lands next to a box with a box collider attached if he lands at a very specific y position even though there is no place for him to land on he gets stuck there and won't fall. I was wondering if this is a bug with Unity or if there is something I could do to fix it. So far I've removed colliders while he was stuck and he then seems to fall, but I need the colliders so I can't just remove them. He is somehow caught on this collider. And yes I have removed the collider on his hand, but then he just gets caught with his foot 80a7b2f4c80c92d432975fc9bf64ea93.png

    EDIT: I have tried giving him a circle collider already it doesn't work.
     
    Last edited: Aug 23, 2016
  2. PeaceLaced

    PeaceLaced

    Joined:
    Jun 2, 2015
    Posts:
    53
    Try making the colliders round so he will slide down.
     
  3. Xregion

    Xregion

    Joined:
    Jun 25, 2016
    Posts:
    3
    That didn't work
     
  4. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,802
    Try creating a Physics2D material and setting the friction low, then assigning that to the colliders.
     
  5. Xregion

    Xregion

    Joined:
    Jun 25, 2016
    Posts:
    3
    The colliders on the walls have a friction material attached already.
     
  6. PeaceLaced

    PeaceLaced

    Joined:
    Jun 2, 2015
    Posts:
    53