<?xml version="1.0"?>

<PropertyList>

 <path>ercoupe.ac</path>
 <offsets>
  <z-m>-0.5</z-m>
 </offsets>

 <model>
  <name>Cockpit</name>
  <usage>interior</usage>
  <path>cockpit.xml</path>
  <offsets>
   <x-m>0.0</x-m>
   <y-m>0.0</y-m>
   <z-m>0.0</z-m>
  </offsets>
 </model>


 <model>
  <name>LeftYoke</name>
  <usage>interior</usage>
  <path>Yoke.xml</path>
  <offsets>
   <x-m>-0.551</x-m>
   <y-m>-0.273</y-m>
   <z-m> 0.559</z-m>
  </offsets>
 </model>

 <model>
  <name>RightYoke</name>
  <usage>interior</usage>
  <path>Yoke.xml</path>
  <offsets>
   <x-m>-0.551</x-m>
   <y-m> 0.261</y-m>
   <z-m> 0.559</z-m>
  </offsets>
 </model>


<!--
 <model>
  <name>Pilot</name>
  <usage>interior</usage>
  <path>Human/female-pilot.xml</path>
  <offsets>
   <x-m>  0.12 </x-m>
   <y-m> -0.20 </y-m>
   <z-m> -0.65 </z-m>
  </offsets>
 </model>
-->

 <animation>
  <type>alpha-test</type>
  <object-name>Glass</object-name>
  <object-name>glass</object-name>
  <object-name>tubeglass</object-name>
  <alpha-factor>0.01</alpha-factor>
 </animation>

 <effect>
  <inherits-from>Effects/glass</inherits-from>
  <object-name>Glass</object-name>
  <object-name>tubeglass</object-name>
 </effect>

<!-- Livery  -->
  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/ercoupe/Models/Liveries", 10);
    </load>
    <unload>
      livery_update.stop();
    </unload>
  </nasal>

  <animation>
    <type>material</type>
    <object-name>Fuselage</object-name>
    <object-name>Struts</object-name>
    <object-name>WindowFrameLeft</object-name>
    <object-name>WindowFrameRight</object-name>
    <property-base>sim/model/livery</property-base>
    <texture-prop>texture</texture-prop>
    <texture>Aircraft/ercoupe/Models/Liveries/ercoupe-ext2-aluminium.png</texture>
  </animation>

  <animation>
    <type>material</type>
    <object-name>Wings</object-name>
    <object-name>Gears</object-name>
    <property-base>sim/model/livery-wings</property-base>
    <texture-prop>texture</texture-prop>
    <texture>Aircraft/ercoupe/Models/Liveries/c150-02.png</texture>
  </animation>

<!--  Reflection effect -->
  <effect>
    <name>Effects/fuselage-reflection</name>
    <inherits-from>Aircraft/Generic/Effects/Fuselagereflect</inherits-from>
    <object-name>Fuselage</object-name>
    <object-name>Struts</object-name>
    <object-name>Wheels</object-name>
    <object-name>metal</object-name>
    <object-name>WindowFrameLeft</object-name>
    <object-name>WindowFrameRight</object-name>
    <parameters>
      <texture n="2">
        <image>Aircraft/ercoupe/Models/Liveries/ercoupe-ext2n.png</image>
      </texture>
    </parameters>
  </effect>

  <effect>
    <name>Effects/wing-reflection</name>
    <inherits-from>Aircraft/Generic/Effects/Fuselagereflect</inherits-from>
    <object-name>Wings</object-name>
    <parameters>
      <reflection-fresnel type="float"> 0.2 </reflection-fresnel>
      <texture n="2">
        <image>Aircraft/ercoupe/Models/Liveries/c150-02n.png</image>
      </texture>
    </parameters>
  </effect>

  <effect>
   <name>Effects/prop-reflection</name>
   <inherits-from>Aircraft/Generic/Effects/Fuselagereflect</inherits-from>
   <object-name>Propeller</object-name>
   <parameters>
    <reflection-correction type="float">-0.9</reflection-correction>
   </parameters>
  </effect>

  <effect>
    <name>Effects/cylinder-reflection</name>
    <inherits-from>Aircraft/Generic/Effects/Fuselagereflect</inherits-from>
    <object-name>Cylinders</object-name>
    <parameters>
      <texture n="2">
        <image>Aircraft/ercoupe/Models/cylinder_normals.png</image>
        <filter>linear-mipmap-linear</filter>
        <wrap-s>repeat</wrap-s>
        <wrap-t>repeat</wrap-t>
      </texture>
    </parameters>
  </effect>

<!-- internal glass effect -->
  <effect>
    <inherits-from>Aircraft/ercoupe/Models/Effects/glass/glass</inherits-from>
    <object-name>WindscreenI</object-name>
    <object-name>RearWindowI</object-name>
    <object-name>RWindowI</object-name>
    <object-name>LWindowI</object-name>
  </effect>

<!-- external glass effect -->
  <effect>
    <inherits-from>Aircraft/ercoupe/Models/Effects/glass/reflection</inherits-from>
    <object-name>WindscreenO</object-name>
    <object-name>RearWindowO</object-name>
    <object-name>RWindowO</object-name>
    <object-name>LWindowO</object-name>
  </effect>

<!-- Outside -->
 <model>
  <name>Header Fuel Gauge</name>
  <path>Aircraft/ercoupe/Models/Instruments/FuelGauge/fuelgauge.xml</path>
  <offsets>
   <x-m>-1.02374</x-m>
   <y-m> 0.0</y-m>
   <z-m> 0.740649</z-m>
  </offsets>
 </model>

 <animation>
  <type>material</type>
  <object-name>TailLightLens</object-name>
  <emission>
    <red>0.5</red>
    <green>0.4</green>
    <blue>0.0</blue>
    <factor-prop>controls/lighting/nav-lights</factor-prop>
  </emission>
  <transparency>
   <alpha-prop>controls/lighting/nav-lights</alpha-prop>
   <factor>0.2</factor>
   <offset>0.7</offset>
  </transparency>
 </animation>

 <animation>
  <type>material</type>
  <object-name>LeftNavLightLens</object-name>
  <emission>
    <red>1.0</red>
    <green>0.5</green>
    <blue>0.0</blue>
    <factor-prop>controls/lighting/nav-lights</factor-prop>
  </emission>
  <transparency>
   <alpha-prop>controls/lighting/nav-lights</alpha-prop>
   <factor>0.2</factor>
   <offset>0.7</offset>
  </transparency>
 </animation>

 <animation>
  <type>material</type>
  <object-name>RightNavLightLens</object-name>
  <emission>
    <red>1.0</red>
    <green>0.8</green>
    <blue>0.0</blue>
    <factor-prop>controls/lighting/nav-lights</factor-prop>
  </emission>
  <transparency>
   <alpha-prop>controls/lighting/nav-lights</alpha-prop>
   <factor>0.2</factor>
   <offset>0.7</offset>
  </transparency>
 </animation>

 <animation>
  <type>noshadow</type>
  <object-name>Glass</object-name>
  <object-name>TailLightLens</object-name>
  <object-name>LeftNavLightLens</object-name>
  <object-name>RightNavLightLens</object-name>
 </animation>

<!-- Interior -->
 <effect>
  <inherits-from>Aircraft/ercoupe/Models/Effects/interior</inherits-from>
  <object-name>Interior</object-name>
  <object-name>LeftYoke</object-name>
  <object-name>RightYoke</object-name>
 </effect>

<!-- Airframe -->
 <animation>
  <type>select</type>
  <object-name>Propeller</object-name>
  <condition>
   <less-than>
    <property>engines/engine[0]/rpm</property>
    <value>200</value>
   </less-than>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>Propeller.Slow</object-name>
  <condition>
   <and>
    <greater-than>
     <property>engines/engine[0]/rpm</property>
     <value>190</value>
    </greater-than>
    <less-than>
     <property>engines/engine[0]/rpm</property>
     <value>1200</value>
    </less-than>
   </and>
  </condition>
 </animation>

 <animation>
  <type>select</type>
  <object-name>Propeller.Fast</object-name>
  <condition>
   <greater-than>
    <property>engines/engine[0]/rpm</property>
    <value>1200</value>
   </greater-than>
  </condition>
 </animation>

 <animation>
  <type>noshadow</type>
  <object-name>Propeller.Slow</object-name>
  <object-name>Propeller.Fast</object-name>
 </animation>

<!-- Lights -->
 <model>
  <name>NavLights</name>
  <path>Aircraft/ercoupe/Models/navlightsCombined.xml</path>
 </model>


 <animation>
  <type>spin</type>
  <object-name>Propeller</object-name>
  <property>engines/engine[0]/rpm</property>
  <factor>-1</factor>
  <center>
   <x-m>-1.949</x-m>
   <y-m>0</y-m>
   <z-m>0.447</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>Propeller.Slow</object-name>
  <property>engines/engine[0]/rpm</property>
  <factor>-0.1</factor>
  <center>
   <x-m>-1.949</x-m>
   <y-m>0</y-m>
   <z-m>0.447</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>Propeller.Fast</object-name>
  <property>engines/engine[0]/rpm</property>
  <factor>-0.001</factor>
  <center>
   <x-m>-1.949</x-m>
   <y-m>0</y-m>
   <z-m>0.447</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

<!-- Nose Gear Animations -->
 <animation>
  <type>rotate</type>
  <object-name>NoseWheel</object-name>
  <object-name>NoseWheelPart</object-name>
  <object-name>FLdamper</object-name>
  <object-name>NoseStrutPart</object-name>
  <object-name>FUdamper</object-name>
  <property>surface-positions/rudder-pos-norm</property>
  <factor>-45.0</factor>
  <center>
   <x-m>-1.35967</x-m>
   <y-m> 0.00</y-m>
   <z-m>-0.235054</z-m>
  </center>
  <axis>
   <x>0.26723838</x>
   <y>0.00</y>
   <z>0.96363045</z>
  </axis>
 </animation>

 <animation>
  <type>translate</type>
  <object-name>NoseWheel</object-name>
  <object-name>NoseWheelPart</object-name>
  <object-name>FLdamper</object-name>
  <property>gear/gear/compression-norm</property>
  <factor>0.3077</factor>
  <center>
   <x-m>-1.451</x-m>
   <y-m> 0.003</y-m>
   <z-m>-0.404</z-m>
  </center>
  <axis>
   <x>0.26723838</x>
   <y>0.00</y>
   <z>0.96363045</z>
  </axis>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>NoseWheel</object-name>
  <condition>
     <property>gear/gear/wow</property>
  </condition>
  <property>velocities/groundspeed-kt</property>
  <factor>15.6</factor> <!-- Wheel circumference 1.979 m -->
  <center>
   <x-m>-1.46442</x-m>
   <y-m>0.001</y-m>
   <z-m>-0.612418</z-m>
  </center>
  <axis>
   <x> 0.0</x>
   <y>-1.0</y>
   <z> 0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>FUdamper</object-name>
  <property>gear/gear[0]/compression-norm</property>
   <interpolation>
    <entry><ind> 0.00 </ind><dep>0</dep></entry>
    <entry><ind> 0.25 </ind><dep>-20</dep></entry>
    <entry><ind> 0.50 </ind><dep>-40</dep></entry>
    <entry><ind> 0.75 </ind><dep>-60</dep></entry>
    <entry><ind> 1.00 </ind><dep>-80</dep></entry>
    <entry><ind> 1.25 </ind><dep>-100</dep></entry>
    <entry><ind> 1.50 </ind><dep>-120</dep></entry>
   </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
  <center>
   <x-m>-1.295</x-m>
   <y-m>0.0</y-m>
   <z-m>-0.205</z-m>
  </center>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>FLdamper</object-name>
  <property>gear/gear[0]/compression-norm</property>
   <interpolation>
    <entry><ind> 0.00 </ind><dep>0</dep></entry>
    <entry><ind> 0.25 </ind><dep>20</dep></entry>
    <entry><ind> 0.50 </ind><dep>40</dep></entry>
    <entry><ind> 0.75 </ind><dep>60</dep></entry>
    <entry><ind> 1.00 </ind><dep>80</dep></entry>
    <entry><ind> 1.25 </ind><dep>100</dep></entry>
    <entry><ind> 1.50 </ind><dep>120</dep></entry>
   </interpolation>
  <axis>
   <x>0</x>
   <y>1</y>
   <z>0</z>
  </axis>
  <center>
   <x-m>-1.35</x-m>
   <y-m>0.0</y-m>
   <z-m>-0.39</z-m>
  </center>
 </animation>

<!-- Left Main Gear Animations -->
 <animation>
  <type>rotate</type>
  <object-name>LeftWheel</object-name>
  <object-name>LMStrut01</object-name>
  <property>gear/gear[1]/compression-norm</property>
   <interpolation>
    <entry><ind> 0.00 </ind><dep> 0</dep></entry>
    <entry><ind> 0.25 </ind><dep>24</dep></entry>
    <entry><ind> 0.50 </ind><dep>40</dep></entry>
    <entry><ind> 0.75 </ind><dep>57</dep></entry>
    <entry><ind> 1.00 </ind><dep>75</dep></entry>
    <entry><ind> 1.25 </ind><dep>91</dep></entry>
    <entry><ind> 1.50 </ind><dep>91</dep></entry>
   </interpolation>
  <center>
  <x-m>-0.209022</x-m>
  <y-m>-1.007</y-m>
  <z-m>-0.348909</z-m>
  </center>
 <axis>
  <x> 0.0</x>
  <y>-1.0</y>
  <z> 0.0</z>
 </axis>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>LeftWheel</object-name>
  <condition>
     <property>gear/gear[1]/wow</property>
  </condition>
  <property>velocities/groundspeed-kt</property>
  <factor>12.3</factor> <!-- Wheel circumference 2.513 m -->
  <center>
   <x-m>-0.046786</x-m>
   <y-m>-1.07103</y-m>
   <z-m>-0.567522</z-m>
  </center>
  <axis>
   <x> 0.0</x>
   <y>-1.0</y>
   <z> 0.0</z>
  </axis>
  </animation>

<!-- Right Main Gear Animations -->
 <animation>
  <type>rotate</type>
  <object-name>RightWheel</object-name>
  <object-name>RMStrut01</object-name>
  <property>gear/gear[2]/compression-norm</property>
   <interpolation>
    <entry><ind> 0.00 </ind><dep> 0</dep></entry>
    <entry><ind> 0.25 </ind><dep>24</dep></entry>
    <entry><ind> 0.50 </ind><dep>40</dep></entry>
    <entry><ind> 0.75 </ind><dep>57</dep></entry>
    <entry><ind> 1.00 </ind><dep>75</dep></entry>
    <entry><ind> 1.25 </ind><dep>91</dep></entry>
    <entry><ind> 1.50 </ind><dep>91</dep></entry>
   </interpolation>
  <center>
  <x-m>-0.209022</x-m>
  <y-m> 0.007</y-m>
  <z-m>-0.348909</z-m>
  </center>
  <axis>
   <x> 0.0</x>
   <y>-1.0</y>
   <z> 0.0</z>
  </axis>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>RightWheel</object-name>
  <condition>
   <property>gear/gear[2]/wow</property>
  </condition>
  <property>velocities/groundspeed-kt</property>
  <factor>12.3</factor> <!-- Wheel circumference 2.513 m -->
  <center>
   <x-m>-0.046786</x-m>
   <y-m>-1.07103</y-m>
   <z-m>-0.567522</z-m>
  </center>
  <axis>
   <x> 0.0</x>
   <y>-1.0</y>
   <z> 0.0</z>
  </axis>
 </animation>

<!--  Aileron Animations  -->
 <animation>
  <type>rotate</type>
  <object-name>LAileron</object-name>
  <property>surface-positions/left-aileron-pos-norm</property>
  <interpolation>
   <entry>
    <ind>1.0</ind>
    <dep>9.5</dep>
   </entry>
   <entry>
    <ind>0.0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>-1.0</ind>
    <dep>-40.5</dep>
   </entry>
  </interpolation>
  <axis>
   <x1-m>0.454</x1-m>
   <y1-m>-3.974</y1-m>
   <z1-m>0.36</z1-m>
   <x2-m>0.454</x2-m>
   <y2-m>-1.067</y2-m>
   <z2-m>0.052</z2-m>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>RAileron</object-name>
  <property>surface-positions/right-aileron-pos-norm</property>
  <interpolation>
   <entry>
    <ind>1.0</ind>
    <dep>40.5</dep>
   </entry>
   <entry>
    <ind>0.0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>-1.0</ind>
    <dep>-9.5</dep>
   </entry>
  </interpolation>
  <axis>
   <x1-m>0.454</x1-m>
   <y1-m>3.974</y1-m>
   <z1-m>0.36</z1-m>
   <x2-m>0.454</x2-m>
   <y2-m>1.067</y2-m>
   <z2-m>0.052</z2-m>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>Elevator</object-name>
  <property>surface-positions/elevator-pos-norm</property>
   <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>-13</dep>
   </entry>
   <entry>
    <ind>0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>1.0</ind>
    <dep>12</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>3.89</x-m>
   <y-m>0.0</y-m>
   <z-m>0.61</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>1.0</y>
   <z>0.0</z>
  </axis>
 </animation>

<!--  Rudder Animation -->
 <animation>
  <type>rotate</type>
  <object-name>LRudder</object-name>
  <property>surface-positions/rudder-pos-norm</property>
  <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>-20</dep>
   </entry>
   <entry>
    <ind>0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>1.0</ind>
    <dep>3</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>3.945</x-m>
   <y-m>-1.175</y-m>
   <z-m>0.64</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>0.0</y>
   <z>1.0</z>
  </axis>
 </animation>
 <animation>
  <type>rotate</type>
  <object-name>RRudder</object-name>
  <property>surface-positions/rudder-pos-norm</property>
  <interpolation>
   <entry>
    <ind>-1.0</ind>
    <dep>-3</dep>
   </entry>
   <entry>
    <ind>0</ind>
    <dep>0</dep>
   </entry>
   <entry>
    <ind>1.0</ind>
    <dep>20</dep>
   </entry>
  </interpolation>
  <center>
   <x-m>3.945</x-m>
   <y-m>1.175</y-m>
   <z-m>0.64</z-m>
  </center>
  <axis>
   <x>0.0</x>
   <y>0.0</y>
   <z>1.0</z>
  </axis>
 </animation>

<!--  Cabin Window Animation -->
 <animation>
  <type>rotate</type>
  <object-name>RWindow</object-name>
   <property>surface-positions/speedbrake-pos-norm</property>
  <factor>-8.0</factor>
  <center>
   <x-m>-0.0</x-m>
   <y-m> 0.09</y-m>
   <z-m> 0.65</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>
 <animation>
  <type>rotate</type>
  <object-name>RWindow</object-name>
   <property>surface-positions/speedbrake-pos-norm</property>
  <factor>-92.5</factor>
  <center>
   <x-m>-0.0</x-m>
   <y-m> 0.05 </y-m>
   <z-m> 0.65</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>rotate</type>
  <object-name>LWindow</object-name>
   <property>surface-positions/speedbrake-pos-norm</property>
  <factor>8.0</factor>
  <center>
   <x-m>-0.0</x-m>
   <y-m>-0.09</y-m>
   <z-m> 0.65</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>
 <animation>
  <type>rotate</type>
  <object-name>LWindow</object-name>
   <property>surface-positions/speedbrake-pos-norm</property>
  <factor>92.5</factor>
  <center>
   <x-m>-0.0</x-m>
   <y-m>-0.05 </y-m>
   <z-m> 0.65</z-m>
  </center>
  <axis>
   <x>1.0</x>
   <y>0.0</y>
   <z>0.0</z>
  </axis>
 </animation>

 <animation>
  <type>slider</type>
  <object-name>WindowFrameLeft</object-name>
  <drag-direction>vertical</drag-direction>
  <value>0.0</value>
  <action>
   <binding>
    <command>property-adjust</command>
    <property>/controls/flight/speedbrake</property>
    <factor>-0.05</factor>
    <min>0.0</min>
    <max>1.0</max>
   </binding>
  </action>
 </animation>

 <animation>
  <type>slider</type>
  <object-name>WindowFrameRight</object-name>
  <drag-direction>vertical</drag-direction>
  <value>0.0</value>
  <action>
   <binding>
    <command>property-adjust</command>
    <property>/controls/flight/speedbrake</property>
    <factor>-0.05</factor>
    <min>0.0</min>
    <max>1.0</max>
   </binding>
  </action>
 </animation>

 <animation>
  <type>noshadow</type>
  <object-name>WindowFrameLeft</object-name>
  <object-name>WindowFrameRight</object-name>
 </animation>

 <!-- Panel animations -->
 <animation>
  <type>material</type>
  <object-name>PanelLightLens</object-name>
  <emission>
    <red>0.9</red>
    <green>0.85</green>
    <blue>0.7</blue>
    <factor-prop>controls/lighting/instruments-norm</factor-prop>
  </emission>
 </animation>

 <animation>
  <type>slider</type>
  <object-name>PanelLightSwitch</object-name>
  <drag-direction>horizontal</drag-direction>
  <value>0.0</value>
  <action>
   <binding>
    <command>property-adjust</command>
    <property>controls/lighting/instruments-norm</property>
    <factor>0.1</factor>
   </binding>
  </action>
  <hovered>
   <binding>
    <command>set-tooltip</command>
    <label>Panel Light: %3d%%</label>
    <measure-text>Panel Light: 40%</measure-text>
    <tooltip-id>panellight</tooltip-id>
    <mapping>percent</mapping>
    <property>controls/lighting/instruments-norm</property>
   </binding>
  </hovered>
 </animation>



</PropertyList>

