How to determine visibility in 2D

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-03-28T03:44:05Z Indexed on 2010/03/28 3:53 UTC
Read the original article Hit count: 383

Hello, I'm developing an AI sandbox and I would like to calculate what every living entity can see.

The rule is to simply hide what's behind the edges of the shapes from the point of view of the entity. The image clarifies everything:

alt text

I need it either as an input to the artificial intelligence either graphically, to show it for a specific entity while it moves..

Any cool ideas?

© Stack Overflow or respective owner

Related posts about visibility

Related posts about 2d