Search Unity

RaycastHit2D.point isn't accurate when used with circlecast2d

Discussion in 'Physics' started by alqaadi, Mar 18, 2021.

  1. alqaadi

    alqaadi

    Joined:
    Mar 23, 2015
    Posts:
    1
    when I make circleCast intersect with another circle collider, I get a RaycastHit2D.point that doesn't point at the tip of the collision. instead it always points to the centre at the centre of the intersection-point C-.
    i checked this numerous times with different values to make sure it wasn't my end
    i added a figure. pointA = circleCast. pointB = collided object. pointC= where RaycastHit2D.point is pointing at.
     

    Attached Files: