undercarriage-up-down.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0"?>
  2. <!-- U/C switches -->
  3. <PropertyList>
  4. <path>undercarriage-up-down.ac</path>
  5. <animation>
  6. <type>material</type>
  7. <object-name>srew</object-name>
  8. </animation>
  9. <animation>
  10. <type>rotate</type>
  11. <object-name>up-guard</object-name>
  12. <property>/controls/gear/gear-guard</property>
  13. <factor>-180</factor>
  14. <!-- <offset>180</offset>-->
  15. <center>
  16. <x-m> 4.93528</x-m>
  17. <y-m>-0.00615</y-m>
  18. <z-m> 0.99727</z-m>
  19. </center>
  20. <axis>
  21. <x>0</x>
  22. <y>0</y>
  23. <z>-1</z>
  24. </axis>
  25. </animation>
  26. <animation>
  27. <type>pick</type>
  28. <object-name>up-guard</object-name>
  29. <visible>true</visible>
  30. <action>
  31. <button>0</button>
  32. <repeatable>false</repeatable>
  33. <binding>
  34. <command>property-toggle</command>
  35. <property>/controls/gear/gear-guard</property>
  36. </binding>
  37. </action>
  38. </animation>
  39. <animation>
  40. <type>translate</type>
  41. <object-name>up-button</object-name>
  42. <object-name>up-lamp</object-name>
  43. <property>/controls/gear/gear-down</property>
  44. <interpolation>
  45. <entry><ind>0</ind><dep>0.002</dep></entry>
  46. <entry><ind>1</ind><dep>0</dep></entry>
  47. </interpolation>
  48. <axis>
  49. <x>-1</x>
  50. <y>0</y>
  51. <z>0</z>
  52. </axis>
  53. </animation>
  54. <animation>
  55. <type>pick</type>
  56. <object-name>up-button</object-name>
  57. <object-name>up-lamp</object-name>
  58. <visible>true</visible>
  59. <action>
  60. <button>0</button>
  61. <repeatable>false</repeatable>
  62. <binding>
  63. <command>nasal</command>
  64. <script>controls.gearDown(-1.0)</script>
  65. </binding>
  66. </action>
  67. </animation>
  68. <animation>
  69. <object-name>up-lamp</object-name>
  70. <type>material</type>
  71. <condition>
  72. <equals>
  73. <property>gear/gear[0]/position-norm</property>
  74. <value>1</value>
  75. </equals>
  76. </condition>
  77. <emission>
  78. <red>0.0357</red>
  79. <green>0.0</green>
  80. <blue>0.0</blue>
  81. </emission>
  82. <ambient>
  83. <red>1.0</red>
  84. <green>0.0</green>
  85. <blue>0.0</blue>
  86. </ambient>
  87. </animation>
  88. <!-- **************** gear-down **************** -->
  89. <animation>
  90. <type>translate</type>
  91. <object-name>down-button</object-name>
  92. <object-name>down-button-front</object-name>
  93. <property>/controls/gear/gear-down</property>
  94. <interpolation>
  95. <entry><ind>0</ind><dep>0.002</dep></entry>
  96. <entry><ind>1</ind><dep>0</dep></entry>
  97. </interpolation>
  98. <axis>
  99. <x>1</x>
  100. <y>0</y>
  101. <z>0</z>
  102. </axis>
  103. </animation>
  104. <animation>
  105. <condition>
  106. <greater-than>
  107. <property>/gear/gear[0]/position-norm</property>
  108. <value>0.5</value>
  109. </greater-than>
  110. </condition>
  111. <type>material</type>
  112. <object-name>down-button-front</object-name>
  113. <emission>
  114. <factor-prop>/gear/gear[0]/position-norm</factor-prop>
  115. <red>0.0</red>
  116. <green>1.0</green>
  117. <blue>0.0</blue>
  118. </emission>
  119. <ambient>
  120. <factor-prop>/gear/gear[0]/position-norm</factor-prop>
  121. <red>0.0</red>
  122. <green>1.0</green>
  123. <blue>0.0</blue>
  124. </ambient>
  125. </animation>
  126. <animation>
  127. <type>pick</type>
  128. <object-name>down-button</object-name>
  129. <visible>true</visible>
  130. <action>
  131. <button>0</button>
  132. <repeatable>false</repeatable>
  133. <binding>
  134. <command>nasal</command>
  135. <script>controls.gearDown(1.0)</script>
  136. </binding>
  137. </action>
  138. </animation>
  139. <!-- *** LoD *** -->
  140. <animation>
  141. <type>range</type>
  142. <min-m>0</min-m>
  143. <max-m>5</max-m>
  144. </animation>
  145. </PropertyList>