Animation: preparation for wiper

This commit is contained in:
Sidi Liang 2020-08-16 13:55:32 +08:00
parent 8cee705ce1
commit 9edc403a8c
No known key found for this signature in database
GPG Key ID: 79F0A6B20B72F42F
2 changed files with 63 additions and 4 deletions
Models/Interior/404Design
followme_e-tron.xml

View File

@ -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>

View File

@ -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>