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

Polygon Collider doesn't match Sprite

Discussion in '2D' started by WidmerNoel, Jun 15, 2014.

  1. WidmerNoel

    WidmerNoel

    Joined:
    Jun 3, 2014
    Posts:
    59
    Hello buddy;)

    There's probably not much I can do to fix this.
    In the image you see that my poly-collider doesn't match my sprites border.

    My caracter will walk a little above ground in that case.

    Am I doing something wrong or do poly-colliders operate this way?
    What would you recommend to fix this?
    Should I offset the caracters collider, in the way that his feed are no longer in the his collision area?

    Thank you in advance.
     

    Attached Files:

  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    You can just edit the polygon collider to be what you want.

    --Eric
     
    WidmerNoel likes this.
  3. WidmerNoel

    WidmerNoel

    Joined:
    Jun 3, 2014
    Posts:
    59
    Oh god, I feel so stupid once again :) Thank you!

    By holding down shift we can modify a Polygon-Collider.
     
  4. StridingDragon

    StridingDragon

    Joined:
    Jan 16, 2013
    Posts:
    78
    Hold down the Shift key to modify polygon vertices in the collider or press the Control key to delete individual vertices.
     
    WidmerNoel likes this.