Search Unity

Inconsistent Contact Points from Tilemap Collider 2D

Discussion in '2D' started by Igotlazy, Jan 12, 2020.

  1. Igotlazy

    Igotlazy

    Joined:
    Jan 15, 2018
    Posts:
    65
    So I'm trying to figure out from which side my Box Collider 2D is experiencing a collision. I tried using GetContacts and then checking the normals, but I'm getting very strange results when rubbing against certain parts of the Tilemap Collider. Specifically, the normals of the ContactPoint2Ds just seem to be flipped relative to other places. I've attached a series of images to help show my problem.

    https://imgur.com/a/rTXWGsm
     
  2. oislas

    oislas

    Joined:
    Aug 30, 2018
    Posts:
    1
    I'm getting this exact same problem and I can't figure out if it's some of my configuration or Unity related problem.
    Did you happen to find a solution for your problem, @Igotlazy ?