| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <PropertyList> |
| 4 | |
| 5 | <path>pedals.ac</path> |
| 6 | |
| 7 | <params> |
| 8 | <rudder>/sim/model/c172p/cockpit/pedals-rudder</rudder> |
| 9 | </params> |
| 10 | |
| 11 | <effect> |
| 12 | <inherits-from>../../Effects/interior/lm-pedals-copilot</inherits-from> |
| 13 | <object-name>RightPedal</object-name> |
| 14 | <object-name>LeftPedal</object-name> |
| 15 | <object-name>pedal-rod-left</object-name> |
| 16 | <object-name>pedal-rod-right</object-name> |
| 17 | </effect> |
| 18 | |
| 19 | <animation> |
| 20 | <type>material</type> |
| 21 | <object-name>RightPedal</object-name> |
| 22 | <object-name>LeftPedal</object-name> |
| 23 | <object-name>pedal-rod-left</object-name> |
| 24 | <object-name>pedal-rod-right</object-name> |
| 25 | <condition> |
| 26 | <or> |
| 27 | <not> |
| 28 | <property>sim/rendering/shaders/skydome</property> |
| 29 | </not> |
| 30 | <equals> |
| 31 | <property>sim/rendering/shaders/model</property> |
| 32 | <value>0</value> |
| 33 | </equals> |
| 34 | </or> |
| 35 | </condition> |
| 36 | <emission> |
| 37 | <red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop> |
| 38 | <green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop> |
| 39 | <blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop> |
| 40 | </emission> |
| 41 | </animation> |
| 42 | |
| 43 | <animation> |
| 44 | <type>translate</type> |
| 45 | <object-name>LeftPedal</object-name> |
| 46 | <object-name>pedal-rod-left</object-name> |
| 47 | <property alias="/params/rudder"/> |
| 48 | <factor>-0.05</factor> |
| 49 | <axis> |
| 50 | <x>1.0</x> |
| 51 | <y>0.0</y> |
| 52 | <z>0.0</z> |
| 53 | </axis> |
| 54 | </animation> |
| 55 | |
| 56 | <animation> |
| 57 | <type>rotate</type> |
| 58 | <object-name>LeftPedal</object-name> |
| 59 | <property>controls/gear/brake-left</property> |
| 60 | <factor>-7</factor> |
| 61 | <axis> |
| 62 | <x>0.0</x> |
| 63 | <y>1.0</y> |
| 64 | <z>0.0</z> |
| 65 | </axis> |
| 66 | <center> |
| 67 | <x-m>0.0</x-m> |
| 68 | <y-m>0.0</y-m> |
| 69 | <z-m>0.0</z-m> |
| 70 | </center> |
| 71 | </animation> |
| 72 | |
| 73 | <animation> |
| 74 | <type>translate</type> |
| 75 | <object-name>RightPedal</object-name> |
| 76 | <object-name>pedal-rod-right</object-name> |
| 77 | <property alias="/params/rudder"/> |
| 78 | <factor>0.05</factor> |
| 79 | <axis> |
| 80 | <x>1.0</x> |
| 81 | <y>0.0</y> |
| 82 | <z>0.0</z> |
| 83 | </axis> |
| 84 | </animation> |
| 85 | |
| 86 | <animation> |
| 87 | <type>rotate</type> |
| 88 | <object-name>RightPedal</object-name> |
| 89 | <property>controls/gear/brake-right</property> |
| 90 | <factor>-7</factor> |
| 91 | <axis> |
| 92 | <x>0.0</x> |
| 93 | <y>1.0</y> |
| 94 | <z>0.0</z> |
| 95 | </axis> |
| 96 | <center> |
| 97 | <x-m>0.0</x-m> |
| 98 | <y-m>0.0</y-m> |
| 99 | <z-m>0.0</z-m> |
| 100 | </center> |
| 101 | </animation> |
| 102 | |
| 103 | </PropertyList> |