Sign in to follow this  

Line of Sight problem

Recommended Posts

lucky6969b    1330

How do I calculate the line of sight of an agent that he sees in the world so that he can make a response to it in Direct3D

I know there is a way to build a Left-handed view matrix and projection matrix, but how can I make frustum so that objects intersect with this frustum will include in his line of sight.



Share this post

Link to post
Share on other sites
belfegor    2834

What i would recommend:

First check the distance and dot product for angle between agent and his target if that passes use ray-cast with 2-3 rays to determine target visibility against that "world" (most physics libraries have this feature).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this