<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <path>pogo.ac</path>

  <!-- MP sound call -->
  <sound>
    <path>../Sounds/mp-sound.xml</path>
  </sound>

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Liveries", 10);
    </load>
    <unload>
      livery_update.stop();
    </unload>
  </nasal>

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>ailesV</object-name>
    <object-name>ailesH</object-name>
    <object-name>directionB</object-name>
    <object-name>directionH</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>pieds</object-name>
    <object-name>tourverriere</object-name>

    <object-name>trous</object-name>
    <object-name>axe0</object-name>
    <object-name>roue0</object-name>
    <object-name>axe1</object-name>
    <object-name>roue1</object-name>
    <object-name>axe2</object-name>
    <object-name>roue2</object-name>
    <object-name>axe3</object-name>
    <object-name>roue3</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailesV</object-name>
    <object-name>ailesH</object-name>
    <object-name>directionB</object-name>
    <object-name>directionH</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>pieds</object-name>
    <object-name>tourverriere</object-name>
    <object-name>trous</object-name>
    <object-name>axe0</object-name>
    <object-name>roue0</object-name>
    <object-name>axe1</object-name>
    <object-name>roue1</object-name>
    <object-name>axe2</object-name>
    <object-name>roue2</object-name>
    <object-name>axe3</object-name>
    <object-name>roue3</object-name>
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</object-name>

    <property-base>sim/model/livery</property-base>
    <texture-prop>texture</texture-prop>
    <texture>texture.png</texture>
    <specular>
      <red-prop>specular/red</red-prop>
      <green-prop>specular/green</green-prop>
      <blue-prop>specular/blue</blue-prop>
    </specular>
  </animation>

  <effect>
    <inherits-from>Effects/Bump/bumpspec</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>ailesV</object-name>
    <object-name>ailesH</object-name>
    <object-name>directionB</object-name>
    <object-name>directionH</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>pieds</object-name>
    <object-name>tourverriere</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
  </effect>

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

  <!-- Sélection des vitres en fonction de HDR ou pas -->
  <animation>
    <type>select</type>
    <condition>
      <property>/sim/rendering/hdr/hdr-enabled</property>
    </condition>
    <object-name>HDRvitres</object-name>
    <object-name>HDRverriere</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <not><property>/sim/rendering/hdr/hdr-enabled</property></not>
    </condition>
    <object-name>vitres</object-name>
    <object-name>verriere</object-name>
  </animation>

  <model>
    <path>Interior/interior.xml</path>
  </model>

  <model>
    <path>propeller/all-propeller.xml</path>
  </model>

  <model>
    <path>Effects/cranking/all-cranking.xml</path>
  </model>

  <model>
    <path>Effects/tiptrail/all-tiptrails.xml</path>
  </model>

  <model>
    <path>light/all-lights.xml</path>
  </model>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>aileronG</object-name>
    <property>/controls/flight/elevator</property>
    <factor> -15 </factor>
    <axis>
      <x1-m>  3.26514 </x1-m>
      <y1-m> -0.69435 </y1-m>
      <z1-m> -0.01891 </z1-m>
      <x2-m>  3.65151 </x2-m>
      <y2-m> -3.65151 </y2-m>
      <z2-m> -0.03020 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>/controls/flight/elevator</property>
    <factor> -15 </factor>
    <axis>
      <x1-m>  3.65151 </x1-m>
      <y1-m>  3.65151 </y1-m>
      <z1-m> -0.03020 </z1-m>
      <x2-m>  3.26514 </x2-m>
      <y2-m>  0.69435 </y2-m>
      <z2-m> -0.01891 </z2-m>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>directionB</object-name>
    <property>/controls/flight/rudder</property>
    <factor> 15 </factor>
    <axis>
      <x1-m>  3.73448 </x1-m>
      <y1-m>  0.00000 </y1-m>
      <z1-m> -2.31844 </z1-m>
      <x2-m>  3.61271 </x2-m>
      <y2-m>  0.00000 </y2-m>
      <z2-m> -0.73843 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionH</object-name>
    <property>/controls/flight/rudder</property>
    <factor>15 </factor>
    <axis>
      <x1-m>  3.58322 </x1-m>
      <y1-m>  0.00000 </y1-m>
      <z1-m>  0.44885 </z1-m>
      <x2-m>  3.79184 </x2-m>
      <y2-m>  0.00000 </y2-m>
      <z2-m>  2.32213 </z2-m>
    </axis>
  </animation>

  <!-- Animations des ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronG</object-name>
    <property>surface-positions/left-aileron-pos-norm</property>
    <factor> -15 </factor>
    <axis>
      <x1-m>  3.26514 </x1-m>
      <y1-m> -0.69435 </y1-m>
      <z1-m> -0.01891 </z1-m>
      <x2-m>  3.65151 </x2-m>
      <y2-m> -3.65151 </y2-m>
      <z2-m> -0.03020 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> -15 </factor>
    <axis>
      <x1-m>  3.65151 </x1-m>
      <y1-m>  3.65151 </y1-m>
      <z1-m> -0.03020 </z1-m>
      <x2-m>  3.26514 </x2-m>
      <y2-m>  0.69435 </y2-m>
      <z2-m> -0.01891 </z2-m>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <type>translate</type>
    <object-name>axe0</object-name>
    <object-name>roue0</object-name>
    <property>gear/gear[0]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>axe1</object-name>
    <object-name>roue1</object-name>
    <property>gear/gear[1]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>axe2</object-name>
    <object-name>roue2</object-name>
    <property>gear/gear[2]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.2 </dep></entry>
    </interpolation>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>axe3</object-name>
    <object-name>roue3</object-name>
    <property>gear/gear[3]/compression-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1 </ind><dep> 0. </dep></entry>
    </interpolation>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roue0</object-name>
    <property>gear/gear[0]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  4.941 </x-m>
      <y-m> -3.896 </y-m>
      <z-m> -0.002 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y>  0.000 </y>
      <z> -1.000 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roue1</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  4.941 </x-m>
      <y-m> -0.037 </y-m>
      <z-m>  3.236 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y> -1.000 </y>
      <z>  0.000 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roue2</object-name>
    <property>gear/gear[2]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  4.941 </x-m>
      <y-m>  3.844 </y-m>
      <z-m> -0.002 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y>  0.000 </y>
      <z> -1.000 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roue3</object-name>
    <property>gear/gear[3]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  4.941 </x-m>
      <y-m> -0.037 </y-m>
      <z-m> -3.164 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y> -1.000 </y>
      <z>  0.000 </z>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <type>pick</type>
    <object-name>tourverriere</object-name>
    <object-name>verriere</object-name>
    <object-name>HDRverriere</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>tourverriere</object-name>
    <object-name>verriere</object-name>
    <object-name>HDRverriere</object-name>
    <property>/sim/model/door-positions/crew/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 0.05 </ind><dep> 0.10 </dep></entry>
      <entry><ind> 1.00 </ind><dep> 0.10 </dep></entry>
    </interpolation>
    <axis>
      <x> 0.000 </x>
      <y> 0.000 </y>
      <z> 1.000 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>tourverriere</object-name>
    <object-name>verriere</object-name>
    <object-name>HDRverriere</object-name>
    <property>/sim/model/door-positions/crew/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 0.05 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep> 20.00 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.680 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.680 </z-m>
    </center>
    <axis>
      <x> 0.000 </x>
      <y> 1.000 </y>
      <z> 0.000 </z>
    </axis>
  </animation>

</PropertyList>
