First of all, happy new year!!!
/me got very drunk
I have a question.
Because the levels in the game I am making are rather big, I'd like to use a "player radar" where you can see players in your neighbourhood. I use a fixed camera rotation value.

I'd like to project the player coordinates to a radar (HUD) as you can see in the quick mockup picture.
How do turn a position of another player, relative to mine (local player), into an angle that is displayed on a 2D HUD? It uses arrows as you can see.
ps: Eventually I will use the alpha value to display how far away someone is (far away is high alpha value, nearby is opaque value)
/me got very drunk
I have a question.
Because the levels in the game I am making are rather big, I'd like to use a "player radar" where you can see players in your neighbourhood. I use a fixed camera rotation value.

I'd like to project the player coordinates to a radar (HUD) as you can see in the quick mockup picture.
How do turn a position of another player, relative to mine (local player), into an angle that is displayed on a 2D HUD? It uses arrows as you can see.
ps: Eventually I will use the alpha value to display how far away someone is (far away is high alpha value, nearby is opaque value)