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!
↧