I need to make a speedometer that stays on top of everything. I also don't know how to make the bar move to show how fast you are going. Like this picture below. I need to know how to make the red bar move.
By building a mechanism that outputs different powers depending on how fast you are going (this could be measured by how many times the wheels rotate per minute, how much wind resistance there is, and maybe more). You might also be able to build one by having a satellite check your position once, check it again a few seconds later, and see what the distance is between them. I'm not sure if technology is powerful enough to do this method.
I just want to know how to make the red bar move around the center point. I know how to make it move up, down, and side to side. But I don't know how to make it move with the thicker end staying in the center, and have the thinner end point to the different speeds. In the game learn to fly, they have a speedometer like what I want.
I just want to know how to make the red bar move around the center point. I know how to make it move up, down, and side to side. But I don't know how to make it move with the thicker end staying in the center, and have the thinner end point to the different speeds. In the game learn to fly, they have a speedometer like what I want.
I don't know what you mean thick and thinner, but it sounds like you just want to rotate it and adjust it's width and height.
Make sure the registration point of the red pointer is where the center of rotation should be (i.e. the centre of the meter). Then change the .rotation property of the pointer to according to what it is you are measuring (i.e. speed).
Find out what value the rotation should be when the measurement is 0(lets label this a) and the rotation when the measurement is at its maximum(m) and label this b. If the measurement is s, the equation for the rotation would therefore be; a + s/m*(b-a)