I am attempting to implement a boids flocking model in unity.
I have managed to implement steering behaviors (separate, align, cohere) but I am currently using a fixed radius from the agent to define its neighborhood (essentially a bubble around the agent). However, what I need to implement is a vision cone like the one detailed in this image:
![boids vision cone](https://lh5.googleusercontent.com/tRk2pLK4ae2SbqK6X-BwAOBbuIpJZY8Ftkr8AltAntTK61CiZJ0YkXszTcFxPYxkarXt7ghmaNMzn5ja8cNDeTpHc5HNoEV7CywZwgOFpJ01LOYd92VTzSVwDiyKb1-_6jQbKmTy)
I'm unsure how I could implement this in unity. Could someone point me in the correct direction?
To add clarity, what I want to do is detect all other agents in a vision cone, but I'm unsure how to implement it. Currently, I am just detecting all agents within a distance, though I need to ignore the agents behind the one doing detecting ( like in the picture) I'm not looking to visualize it, just detect the agents in that defined neighborhood.
thanks