Object in line of sight (2D)

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a line X1,Y1 to X2,Y2.

I have an object at OBX,OBY with radius OBR (circle in this case)

I`m looking for code/algorithm that will tell me if the `Object` overlaps the line (ie In the line of sight)

Many thanks