Annoying values given by ContactPoint2D.point
Hi,
I'm trying to use ContactPoint2D to find where the collision comes from (above, bellow, left or right). In order to experiment the feature, I use two CollisionBox2D, one that falls on the other. The falling CollisionBox2D has a width of 1 and a height of 1.
When I print the values of ContactPoint2D.point on collisions, I get the values (-0.5, -0.5). Sometimes I even get (-0.5, -0.4956xx). This is annoying because I can't tell, using these values only, if the collision is bellow or on the left of my object.
Is there any trick to solve this? Am I missing something?
Your answer
Follow this Question
Related Questions
Polygon Collider vs Edge Collider Performance 1 Answer
Edit Collider button not working at times?! [2D] 2 Answers
Disabling the bouncing of particles when colliding + ignoring trigger colliders 1 Answer
play a sound like in a piano when touching a collider2D 1 Answer
OnTriggerEnter2D Problem 0 Answers