- Edited
I have a minimap that is displaying player markers like this:
I calculate the position of the markers using this formula (simplified):
for m in markers:
m.position = onlineplayers[m.name].position - localplayer.position
this works... but only if the minimap is on 0 degrees angle
I just don't know how to make it so my formula also considers the rotation of the minimap
minimap rotated: