- Home /
Question by
ynscn · Jan 06, 2014 at 08:48 PM ·
2dcollisioncollider2d-platformer
Unity2D side collision detection
I have a character and a box, i'm trying to understand which side of the character had collided with which side of the box, I made some research and saw some usage of transform.InverseTransformPoint but it wasnt working with the ContactPoint2D. I thought i can add 4 different box colliders to each side and act like that but i wonder if there is another solution
Comment
Best Answer
Answer by Jinxology · Jan 06, 2014 at 09:42 PM
If you are using OnCollisionEnter, then you can check the ContactPoint to see where it hit.