Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

TilemapCollider2D cannot be distinguished in OnCollisionExit2D

Discussion in 'Physics' started by dkollmann, Apr 2, 2018.

  1. dkollmann

    dkollmann

    Joined:
    Jul 25, 2009
    Posts:
    25
    When reacting to collision events, you can distinguish beginning collisions by the contacts, but when the collision exits, all hits are the same so when there are multiple collisions, you do not know which one is ending.

    This would be solvable is there was a way to know which individual shape is involved in the event.

    I wonder if there is a way to handle this right now.

    Thanks,
    Daniel