How to determine hit detection

Good evening.
I’ve been working on how to determine the angle in which an enemy is hit. This is set up in a VR project. The system is reading the data, however; I notice the directional data is wrong. No matter where I’m standing, I still get a “frontal” hit notification. I was working with the AI and that’s where the flattened vector variables came from. I feel as though there’s something simple I’m missing. Could anyone offer some assistance?

Thanks.