Search Unity

Why Polygon Collider 2D is becaming convex?

Discussion in 'Physics' started by KazYamof, Jun 8, 2019.

  1. KazYamof

    KazYamof

    Joined:
    Jun 26, 2015
    Posts:
    59
    I have a sprite renderer with a .png texture.
    I need to put a polygon collider surrounding the texture drawing (some black orthogonal lines ).

    When the lines are orthogonal, the collider generated is convex, wich I do not want it to be.
    When the lines are curves, the collider is correct.
    See:

    upload_2019-6-8_16-14-8.png

    How to ensure the collider will surround exactly when I have straight lines?
     
    ostapgum02 likes this.