I am trying to work out where a given object is in-relation to the players forward facing direction. If the object is to the left of the player, I run specific code that vaguely indicates to the player that the object is to the left (same for the other directions).
The image below is essentially what I want to achieve.
I have currently been able to detect if the object is behind/infront of the player using the players and objects locations but unable to differentiate between left/right.
Assistance would be greatly appreciated.