Circular compass game
While keeping the red magnetic needle aligned with north on the central circular dial, the rectangular base must be rotated to read the compass bearing in degrees that you need to follow. The rectangular base arrow shows the direction of travel, shown in the Ben Nevis compass animation screenshot below.
When using the compass with a map, the compass should be placed on the exact map location you wish to take a bearing from. Align the red magnetic needle with both north in the central circular compass dial and with the grid lines running north on the map. While maintaining this alignment, rotate the rectangular compass base until its arrow points in the direction you wish to follow. The bearing in degrees should be read from the central circular dial at the point where the rectangular compass base arrow aligns with it.
Follow the direction-of-travel arrow on the rectangular compass base. Magnetic north varies slightly both from grid north on the map and true north the north pole. Your map will tell you how many degrees to add to your bearing. This can vary depending on where you are in the country.
Note that the direction you walk in is always the arrow on the rectangular compass base. Remember while following a bearing to always keep the red magnetic needle and north in the central circular dial aligned. To help you stay on track, take regular bearings during a trip, dividing a journey into short sections and taking new bearings from the landmarks seen on the way.
If the clouds descend while you are on the mountain, reading a compass correctly can be a life-saving skill. In poor visibility, it is essential to use a map and compass. Hazards can be avoided by following bearings for distances measured from the map.
Calculate the distance while you are walking, by counting the number of paces taken and multiplying by the distance of each pace. Keep the compass away from all metal objects since these can result in false readings by deflecting the magnetic needle.
Objects to avoid include wristwatches, keys, tables with metal legs or steel screws, mobile telephones and even heavy framed spectacles. Okay I understand. So I have my player up and running and I have my Euler values printing to the screen but my question is, how do I make the needle of my compass rotate as my player rotates? Code csharp :. TheCasual , Jan 26, What are your thoughts about me making the compass needle a child of the player game object??
That way as the player rotates so will the compass needle. Or will this cause my needle to move all around the screen as my player moves? I got it working. By the way. You are amazing!!!
Okay, how about this. I am trying to make the compass a GUI. So I need to work with textures rather than game objects. So I have gotten as far as drawing a compass to a 2D texture. Then I added a new texture which is a really thin black line that I would use as my needle. I draw this to the screen and what appears to happen is the once thin black line is expanded to cover the whole GUI and completely covers the below compass background.
Is this what you were talking about with regards to the transparency. What I try next is make two GUIs, one that will function as the compass background and another very thin GUI that will function as the rotating needle. These two GUIs will be located directly on top of one another to give the illusion that they are one item.
Am I correct in assuming this will work? You don't have to respond to the above post. The two GUIs have rendered nicely with the needle on top. I have to look at my code though because now my needle is rotation in a circle around the compass rather than around a single point in the middle.
You must log in or sign up to reply here.
0コメント