Animation: preparation for wiper
This commit is contained in:
parent
8cee705ce1
commit
9edc403a8c
|
@ -398,10 +398,45 @@
|
|||
</emission>
|
||||
</animation>
|
||||
|
||||
<!-- storage_cover -->
|
||||
|
||||
<!-- storage -->
|
||||
|
||||
<!-- Rain wiper -->
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>frontwiper1</object-name>
|
||||
<property>/fdm/jsbsim/animation/wiper_pos</property>
|
||||
<factor> 75 </factor>
|
||||
<center>
|
||||
<x-m> 0.89 </x-m>
|
||||
<y-m> 0.11 </y-m>
|
||||
<z-m> 1.02 </z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x1-m>0</x1-m>
|
||||
<y1-m>0</y1-m>
|
||||
<z1-m>0</z1-m>
|
||||
<x2-m>1</x2-m>
|
||||
<y2-m>0</y2-m>
|
||||
<z2-m>-1</z2-m>
|
||||
</axis>
|
||||
</animation>
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>frontwiper2</object-name>
|
||||
<property>/fdm/jsbsim/animation/wiper_pos</property>
|
||||
<factor> 75 </factor>
|
||||
<center>
|
||||
<x-m> 0.89 </x-m>
|
||||
<y-m> -0.52 </y-m>
|
||||
<z-m> 1.02 </z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x1-m>0</x1-m>
|
||||
<y1-m>0</y1-m>
|
||||
<z1-m>0</z1-m>
|
||||
<x2-m>1</x2-m>
|
||||
<y2-m>0</y2-m>
|
||||
<z2-m>-1.3</z2-m>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<!-- Accelerator -->
|
||||
<animation>
|
||||
|
|
|
@ -569,6 +569,30 @@
|
|||
</lag_filter>
|
||||
</channel>
|
||||
|
||||
<channel name="Wiper" execrate="2">
|
||||
<fcs_function name="animation/wiper">
|
||||
<function>
|
||||
<table>
|
||||
<independentVar lookup="row">/controls/wiper/frontwiper/state</independentVar>
|
||||
<tableData>
|
||||
0.00 0.0
|
||||
0.05 0.1
|
||||
0.10 0.1
|
||||
0.30 0.2
|
||||
0.75 0.7
|
||||
0.95 1.0
|
||||
1.0 1.0
|
||||
</tableData>
|
||||
</table>
|
||||
</function>
|
||||
</fcs_function>
|
||||
|
||||
<lag_filter name="animation/wiper_pos">
|
||||
<input>animation/wiper</input>
|
||||
<c1>5</c1>
|
||||
</lag_filter>
|
||||
</channel>
|
||||
|
||||
<channel name="SteeringWheel">
|
||||
<fcs_function name="animation/steering_wheel_pos">
|
||||
<function>
|
||||
|
|
Loading…
Reference in New Issue