Milton_Shupe
Resource contributor
- Messages
- 331
- Country

In my "Bounty" ship project, I wish to add a flag to the mast to show wind direction.
I have some of the important constructs below but not sure how to make them work as I am not an xml knowledgeable coder. The <code> shown is from a <value> statement I use in my sails mgmt gauge and it works fine in the gauge.
Animation uses Y axis and 100 frames.
Is the <variable? statement necessary?
Should <units> be in degrees?
How does <bias> work into this calculation to set the flag/wind direction?
Any help immensely appreciated.View attachment 20684
<!-- Animated Flag Showing Wind Direction -->
<part>
<name>flag_01</name>
<animation>
<rotation>Y</rotation>
<parameter>
<code>(A:Ambient wind direction, radians) (A
<Delay DegreesPerSecond="180"/>
<sim>
<variable>Wind Direction</variable>
<units>radians</units>
<scale>100</scale>
<bias>0</bias>
</sim>
</parameter>
</animation>
</part>
Last edited:



