XML: Ferris Wheel Effect: Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
(New page: ==XML: Ferris Wheel Effect== Most commonly used for labels on compass roses. This effect will keep the label upright, while the compass rotates. Create your label and position it at 0 d...) |
|||
| Line 13: | Line 13: | ||
-Radius * sin(heading - compass point) | -Radius * sin(heading - compass point) | ||
Note that this technique can also be used in GDI+/DirectX displays. | |||
[[Category:Aircraft Design]] | [[Category:Aircraft Design]] | ||
[[Category:Panel and Gauge Design]] | [[Category:Panel and Gauge Design]] | ||
Revision as of 10:15, 9 December 2011
XML: Ferris Wheel Effect
Most commonly used for labels on compass roses. This effect will keep the label upright, while the compass rotates.
Create your label and position it at 0 degrees, then assign 2 shifts to it. One for the X and one for the Y.
The Y shift script is:
-Radius * cos(heading - compass point)
The X shift is:
-Radius * sin(heading - compass point)
Note that this technique can also be used in GDI+/DirectX displays.