In my stealth game i need to have something that checks from a coordinate on a object (preferably customizable) if it can see my "Hero". My hero is a circel. I thought maybe something with lines to the perimeter of the circel and that it checks if there is something intersecting that line. But I really dont know how to program this so any help is welcome ;).
A picture for explanation:
Picture
It is my first discussion so any feedback on how to be more clear is welcome

