1
0
Fork 0
fgdata/Aircraft/c172p/Models/Interior/Pedals/pedals-copilot.xml
2021-09-14 19:34:27 +01:00

103 lines
2.7 KiB
XML

<?xml version="1.0"?>
<PropertyList>
<path>pedals.ac</path>
<params>
<rudder>/sim/model/c172p/cockpit/pedals-rudder</rudder>
</params>
<effect>
<inherits-from>../../Effects/interior/lm-pedals-copilot</inherits-from>
<object-name>RightPedal</object-name>
<object-name>LeftPedal</object-name>
<object-name>pedal-rod-left</object-name>
<object-name>pedal-rod-right</object-name>
</effect>
<animation>
<type>material</type>
<object-name>RightPedal</object-name>
<object-name>LeftPedal</object-name>
<object-name>pedal-rod-left</object-name>
<object-name>pedal-rod-right</object-name>
<condition>
<or>
<not>
<property>/sim/rendering/shaders/skydome</property>
</not>
<equals>
<property>/sim/rendering/shaders/model</property>
<value>0</value>
</equals>
</or>
</condition>
<emission>
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
</emission>
</animation>
<animation>
<type>translate</type>
<object-name>LeftPedal</object-name>
<object-name>pedal-rod-left</object-name>
<property alias="/params/rudder"/>
<factor>-0.05</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>LeftPedal</object-name>
<property>controls/gear/brake-left</property>
<factor>-7</factor>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<animation>
<type>translate</type>
<object-name>RightPedal</object-name>
<object-name>pedal-rod-right</object-name>
<property alias="/params/rudder"/>
<factor>0.05</factor>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>RightPedal</object-name>
<property>controls/gear/brake-right</property>
<factor>-7</factor>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
</PropertyList>