Search Unity

Tile Map Composite Collider 2d not behaving as expected

Discussion in '2D Experimental Preview' started by CyanSlinky, Oct 16, 2017.

  1. CyanSlinky

    CyanSlinky

    Joined:
    Feb 27, 2014
    Posts:
    11
    I'm trying to use a tilemap collider 2d in conjunction with a composite collider 2d to have "walls" on the edges of the tiles but the composite collider doesn't seem to be merging them properly in some places and as a result i get walls where i don't want them.

    the red arrows indicate where it's generating walls where i don't want them.

    colliderwhy.png
     
  2. CyanSlinky

    CyanSlinky

    Joined:
    Feb 27, 2014
    Posts:
    11
    i did some tests and apparently it works fine with a normal tile.
    It breaks when using a terrain tile from the 2d extras, any way to fix it?

    Edit: i tried using the rule tile instead and it seems to break on the edges of rotated tiles?
     
    Last edited: Oct 17, 2017
  3. CyanSlinky

    CyanSlinky

    Joined:
    Feb 27, 2014
    Posts:
    11
    a year later and this is still broken, no idea how to fix it.