Dynamic Radar view

Hi,
I am currently working on a character that has the radar to catch npcs. The radar should expand like a pie in front of a character and it should avoid rendering through obstacle. Attaching reference for better understanding.
Thanks
image