- Home /
Question by
BambouQuiGlisse · Jul 13, 2018 at 01:18 PM ·
c#lightcollider2dcirclepoints
How can I find intersection points between a circle and Colliders 2D ?
Hello everyone ! To begin with, i apologize if my english is not very good. ^^"
I'm making a 2D dynamic light based on mesh construction. It works pretty well but i need to find, in some cases, all the intersection points of a circle with a collider. ( the radius and position of this circle is difined by a circleColldier2D )
Thank you for your answers !
PS : I've tried to use CircleCastAll but it just seems to cast a bunch of raycast in a circle, so it's not what i need ( Maybe i'm wrong, I admit i have'nt try for a long time 'cause of the lack of documentation and tutorial ^^ )
PPS : here a case where the solution is needed ( if I have useless point it's not a probleme. I do have some functions which delete them ;) )
dessin-sans-titre.jpg
(28.6 kB)
dessin-sans-titre.jpg
(23.8 kB)
Comment