AS3: Line of Sight
How to开发者_Go百科 check whether the object(s) between the point and the object?
found this. Looks very good -
http://www.baconandgames.com/2010/02/22/intersection-of-an-ellipse-and-a-line-in-as3/
Have you tried adding a sprite, drawing an invisible line (or cone) between the point and the object, and running a hit test?
精彩评论