I would like to create a compass using a circular gauge, similar to the compass in the 'aviation' demo, with the needle pointed North and the scale rotating to indicate heading.
Any suggestions?
I would like to create a compass using a circular gauge, similar to the compass in the 'aviation' demo, with the needle pointed North and the scale rotating to indicate heading.
Any suggestions?
Figured it out. Bound the Scales's StartAngle to heading and viola, it worked.
Hi Thomas,
Yes that is correct. If you would want a needle that is fixed, then have the scale behind it rotate to indicate the direction, the Circular Gauge Scales QuickStart is a good sample. If you use the slider to adjust the StartAngle of the Celsius scale, you can see it rotates the yellow scale. Since the pointer is defined on the Fahrenheit scale, it does not move.
So effectively you would need two scales, where the first just defines your pointer and everything else is hidden. The second scale would have the ticks for N/S/E/W and you would rotate it using StartAngle. Basically what it sounds like you did.
Please log in to a validated account to post comments.