Minimap Error

There is a trick that I use. I don’t know if it can help, I’ll leave it there.
Put a simple arrow on top of the minimap (in the UI itself) and obtain the 2D rotation of the player or leave it static. (For example, in mmorpgs you have both)

Although the 3dRaven u shape allows you more control and is much better, such as changing color depending on the depth of a building, while my always shape does not allow you to do that.

The 3dRaven form is more useful, since if you enter a cave, or something underground, you can modify the color. Whereas my way you couldn’t and would have to have too many meaningless conditions.

Therefore, the 3dRaven shape will always be much better, since the arrow itself can have the responsibility of height as well as transform it and do everything you want independent of the UI. While my way you would have to nest too many queries to that UI and that would not be correct when delegating functions since you would inefficiently overload the UI.