1
0
Fork 0

RAT spinning animation

This commit is contained in:
legoboyvdlp R 2020-06-05 21:56:05 +01:00
parent d35779a1a0
commit 23833547ff
2 changed files with 47 additions and 3 deletions

View file

@ -50,13 +50,19 @@
<object-name>RatDoorR</object-name>
</effect>
<effect>
<inherits-from>Aircraft/A320-family/Models/Effects/reflection-chrome</inherits-from>
<object-name>Rat</object-name>
<object-name>RatSpinner</object-name>
</effect>
<!-- Animations -->
<!-- Belly -->
<!-- Ram Air Turbine -->
<animation>
<name>Rudder Animation</name>
<name>RAT Door left</name>
<type>rotate</type>
<object-name>RatDoorL</object-name>
<object-name>RatDoorL.Inner</object-name>
@ -73,7 +79,7 @@
</animation>
<animation>
<name>Rudder Animation</name>
<name>RAT Door right</name>
<type>rotate</type>
<object-name>RatDoorR</object-name>
<object-name>RatDoorR.Inner</object-name>
@ -90,7 +96,7 @@
</animation>
<animation>
<name>Rudder Animation</name>
<name>RAT Deploy</name>
<type>rotate</type>
<object-name>RatSpinner</object-name>
<object-name>Rat</object-name>
@ -109,6 +115,29 @@
</axis>
</animation>
<animation>
<name>RAT Spin</name>
<type>spin</type>
<object-name>RatSpinner</object-name>
<property>systems/hydraulic/sources/rat/rat-speed-rpm</property>
<condition>
<greater-than>
<property>systems/hydraulic/sources/rat/arm-position</property>
<value>0.8</value>
</greater-than>
</condition>
<center>
<x-m>-2.66533</x-m>
<y-m>-1.64941</y-m>
<z-m>-2.79509</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<!-- Flight Control Surfaces -->
<!-- Rudder -->

View file

@ -126,6 +126,21 @@
</clipto>
</fcs_function>
<fcs_function name="/systems/hydraulic/sources/rat/rat-speed-rpm">
<function>
<table>
<independentVar lookup="row">/instrumentation/airspeed-indicator/indicated-speed-kt</independentVar> <!-- use this meantime so it can stall. But ADR failures will break RAT which is bad... -->
<tableData>
50 0
85 150
90 2500
100 4800
350 6540
</tableData>
</table>
</function>
</fcs_function>
<fcs_function name="/systems/hydraulic/sources/rat/source-psi">
<function>
<ifthen>