How should I go about implementing my AI-s field of vision? Raycasts? Something else?
Here is a better explaination. how can I find out what it can see. When it looks to one side, than it cannot look to the other.
Answer by dkNinja
Apr 12, 2012 at 08:35 PM
Raycasts are kind of slow and dependent on raycast resolution. You might want to look at using a few box triggers to detect what is in the field of vision and then do raycasts for checking occlusion.
Thanks! Sorry it took too long, I forgot I had this question up, cause I haven't been to my AI code since posting this question.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
5 People are following this question.
Collider Vision AI question. Solved!
Need Help making Pong AI beatable
[C#] Raycasts and Object Tags
For each Raycast?
How can I get a character to patrol and follow terrain?