Search Unity

How to get position from 3 circle intersection

Discussion in 'Scripting' started by djoshi, Oct 13, 2017.

  1. djoshi

    djoshi

    Joined:
    Mar 28, 2014
    Posts:
    182
    Hi,

    I want to get the position of object from 3 intersecting circles (3'sCommon intersection). Something like this to find P4 position.

    If I use bounds.intersect, it only return bool but how to get the position? Anybody getting some idea?

    Thanks.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    You would need to actually do the math, as described in that link you give above.

    Personally I would use the approach suggested by one of the comments: find the two intersection points of just two of the circles (as explained neatly here), and then check the distance of each of these to the center of the third circle; return the one that's closest to the correct (third-circle radius) distance.