Object in line of sight (2D)

Blitz3D Forums/Blitz3D Beginners Area/Object in line of sight (2D)

You mean if the line crosses the circle (based on OBR) somewhere?
I think I remember there was a line intersect circle example in the code archies, no?

From elias_t is this ray shpere intersection, I think you could mod it to work with a circle:
http://www.blitzbasic.com/codearcs/codearcs.php?code=947

You may also optimize it, if one of the point is already within the radius, then skip the pytagoras thingie.