I am a C# web developer starting to get into game development. I am looking to either create an on screen compass that points to a game object that I tag as NorthPole, or a simple arrow that moves around the outside of the screen pointing to the game object tagged as NorthPole. Top of screen when walking towards the object, and bottom of screen when walking away. Can anyone help, please? I do not even have a starting point since everything that I have found seems to either be incomplete in either scripting or documentation as far as how to code and set it up.
Glurth, thanks for the help I was able to get it working yesterday right before I saw your last comment. I ended up doing it a bit different than I thought at first. I created a canvas and a panel named Compass. I then created an image of a compass and set it as the source image of the compass panel. Then I wrote a cs script that will get the players rotation and then rotate the panel so that it indicates the “North” direction for my map.
Now I will have to tweak it a bit for when my player is closer to the poles since we are using a cube world made of flat terrain that is laid out like a cross on it’s side. So I will need to detect the terrain region that the player is in and then alter the rotation angle in my script so that it will point to the center, of the center terrain, in the north pole region and then away from the center, of the center terrain, in the south pole region.