undercarriage-up-down.xml 3.2 KB

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