Radar

Blitz3D Forums/Blitz3D Programming/Radar

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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)