Line of Sight

I’m kind of new to Panda and Python; I was wondering if anyone had reference or recommendations on calculating line of sight for both FPS and D&D style games.

as in calculating the length of the line of sight between two objects? or calculating the line itself?
both arent really neccessary in panda since there are convenient functions to solve the problem without doing any math.

No, as in determining if an NPC can actually see another NPC or player, even partially. There’s doubtless something I can do with cameras and framebuffers, other than that I’d like ot avoid ray tracing.

I found the isInview method quite nice for this purpose - you’ll find a fully working example here - download the advanced package and run