I am working on a game and have the following information
Player Position - Vector3
Player Rotation - float (Radiant)
Enemy Location - Vector3
Player attack box - length, width, height
What I need to do it test if the Enemy Location is inside of the player attack box. I know somehow I would either have to rotate the attack box around the player or rotate the enemy location around the player then test it. The rotation is only left to right no up and down. That is why it is a single Radiant value.
I have tried to code the rotation of both the player attack box and the enemy but I feel like I do not have enough knowledge about vector math to properly come up with a solution.