Quantcast
Channel: Questions in topic: "see"
Viewing all articles
Browse latest Browse all 35

Deteecting if an ai can see based on angle

$
0
0
Is it possible to detect if an ai box can see another ai box by using angles? For instance Box A can only see the box B if its between a 45 degree arc in front of it. I know I could detect this sort of thing using raycasts but the way my collision avoidance works it has caused me problems so I'm looking for another way so the ai doesn't just shoot no matter what direction its facing relative to the target. Any ideas? Thanks in advance!

Viewing all articles
Browse latest Browse all 35

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>