Add hydraulic system, tidy pneumatic system
[fg:toms-fgdata.git] / Aircraft / Hurricane / Models / hydraulic.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3         <path>hydraulic.ac</path>
4         <!--pick objects-->
5         <animation>
6                 <type>pick</type>
7                 <object-name>pick-wheels-up</object-name>
8                 <visible>false</visible>
9                 <action>
10                         <button>0</button>
11                         <binding>
12                                 <command>nasal</command>
13                                 <script>hydraulic.hydraulicLever(-1,1)</script>
14                         </binding>
15                 </action>
16         </animation>
17
18         <animation>
19                 <type>pick</type>
20                 <object-name>pick-wheels-neutral</object-name>
21                 <visible>false</visible>
22                 <action>
23                         <button>0</button>
24                         <binding>
25                                 <command>nasal</command>
26                                 <script>hydraulic.hydraulicLever(-1,0)</script>
27                         </binding>
28                 </action>
29         </animation>
30
31         <animation>
32                 <type>pick</type>
33                 <object-name>pick-wheels-down</object-name>
34                 <visible>false</visible>
35                 <action>
36                         <button>0</button>
37                         <binding>
38                                 <command>nasal</command>
39                                 <script>hydraulic.hydraulicLever(-1,-1)</script>
40                         </binding>
41                 </action>
42         </animation>
43
44         <animation>
45                 <type>pick</type>
46                 <object-name>pick-flaps-up</object-name>
47                 <visible>false</visible>
48                 <action>
49                         <button>0</button>
50                         <binding>
51                                 <command>nasal</command>
52                                 <script>hydraulic.hydraulicLever(1,1)</script>
53                         </binding>
54                 </action>
55         </animation>
56
57         <animation>
58                 <type>pick</type>
59                 <object-name>pick-flaps-neutral</object-name>
60                 <visible>false</visible>
61                 <action>
62                         <button>0</button>
63                         <binding>
64                                 <command>nasal</command>
65                                 <script>hydraulic.hydraulicLever(1,0)</script>
66                         </binding>
67                 </action>
68         </animation>
69
70         <animation>
71                 <type>pick</type>
72                 <object-name>pick-flaps-down</object-name>
73                 <visible>false</visible>
74                 <action>
75                         <button>0</button>
76                         <binding>
77                                 <command>nasal</command>
78                                 <script>hydraulic.hydraulicLever(1,-1)</script>
79                         </binding>
80                 </action>
81         </animation>
82
83 <!-- animations -->
84         <animation>
85                 <type>rotate</type>
86                 <object-name>lever</object-name>
87                 <property>controls/hydraulic/lever[0]</property>
88                 <interpolation>
89                         <entry>
90                                 <ind>-1</ind>
91                                 <dep>-3.5</dep>
92                         </entry>
93                         <entry>
94                                 <ind>0</ind>
95                                 <dep>-1</dep>
96                         </entry>
97                         <entry>
98                                 <ind>1</ind>
99                                 <dep>1</dep>
100                         </entry>
101                 </interpolation>
102                 <center>
103                         <x-m>-0.078</x-m>
104                         <y-m>-0.059</y-m>
105                         <z-m>0</z-m>
106                 </center>
107                 <axis>
108                         <x>0</x>
109                         <y>0</y>
110                         <z>1</z>
111                 </axis>
112         </animation>
113         <animation>
114                 <type>rotate</type>
115                 <object-name>lever</object-name>
116                 <property>controls/hydraulic/lever[1]</property>
117                 <interpolation>
118                         <entry>
119                                 <ind>-1</ind>
120                                 <dep>-12.5</dep>
121                         </entry>
122                         <entry>
123                                 <ind>0</ind>
124                                 <dep>0</dep>
125                         </entry>
126                         <entry>
127                                 <ind>1</ind>
128                                 <dep>12.5</dep>
129                         </entry>
130                 </interpolation>
131                 <center>
132                         <x-m>-0.078</x-m>
133                         <y-m>-0.059</y-m>
134                         <z-m>0</z-m>
135                 </center>
136                 <axis>
137                         <x>0</x>
138                         <y>-1</y>
139                         <z>0</z>
140                 </axis>
141         </animation>
142
143         <!--<animation>
144     <type>material</type>
145     <condition>
146       <greater-than>
147         <property>/controls/lighting/panel-norm[1]</property>
148         <value>0</value>
149       </greater-than>
150       <property>/sim/rendering/rembrandt/enabled</property>
151     </condition>
152     <emission>
153       <factor-prop>/controls/lighting/panel-norm</factor-prop>
154       <red>0.0</red>
155       <green>0.0</green>
156       <blue>0.0</blue>
157     </emission>
158   </animation>-->
159
160         <animation>
161                 <type>material</type>
162                 <condition>
163                         <greater-than>
164                                 <property>/controls/lighting/panel-norm</property>
165                                 <value>0</value>
166                         </greater-than>
167                         <not>
168                                 <property>/sim/rendering/rembrandt/enabled</property>
169                         </not>
170                 </condition>
171                 <emission>
172                         <factor-prop>/controls/lighting/panel-norm</factor-prop>
173                         <red>0.75</red>
174                         <green>0.25</green>
175                         <blue>0.25</blue>
176                 </emission>
177         </animation>
178 </PropertyList>