<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <path>p38.ac</path>

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/Lockheed-P38/Models/Liveries", 10);

      var self = cmdarg();

      var float_0 = self.getNode("sim/multiplay/generic/float[0]", 1);
      var float_1 = self.getNode("sim/multiplay/generic/float[1]", 1);
      
      var crew_door = self.getNode("instrumentation/doors/crew/position-norm", 1);
      var passenger_door = self.getNode("instrumentation/doors/passenger/position-norm", 1);
    
      crew_door.alias(float_0);
      passenger_door.alias(float_1);
    </load>

    <unload>
      livery_update.stop();
      crew_door.unalias();
      passenger_door.unalias();
    </unload>
  </nasal>

  <animation>
    <!-- Objets opaques -->
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG1</object-name>
    <object-name>voletG2</object-name>
    <object-name>voletD1</object-name>
    <object-name>voletD2</object-name>
    <object-name>ailes2</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>profondeur</object-name>
    <object-name>moteurs</object-name>
    <object-name>porteA</object-name>
    <object-name>porteGE</object-name>
    <object-name>porteGI</object-name>
    <object-name>porteDI</object-name>
    <object-name>porteDE</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>entreeair</object-name>
    <object-name>air</object-name>
    <object-name>turbos</object-name>
    <object-name>bouchons</object-name>
    <object-name>prises</object-name>
    <object-name>porteairGG</object-name>
    <object-name>porteairGD</object-name>
    <object-name>porteairDG</object-name>
    <object-name>porteairDD</object-name>
    <object-name>canope</object-name>
    <object-name>fenetreG</object-name>
    <object-name>fenetreD</object-name>

    <object-name>trous</object-name>
    <object-name>guns</object-name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>vitrecanope</object-name>
    <object-name>vitrefenG</object-name>
    <object-name>vitrefenD</object-name>
    <object-name>propblurG</object-name>
    <object-name>propblurD</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propdiscD</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG1</object-name>
    <object-name>voletG2</object-name>
    <object-name>voletD1</object-name>
    <object-name>voletD2</object-name>
    <object-name>ailes2</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>profondeur</object-name>
    <object-name>moteurs</object-name>
    <object-name>porteA</object-name>
    <object-name>porteGE</object-name>
    <object-name>porteGI</object-name>
    <object-name>porteDI</object-name>
    <object-name>porteDE</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>entreeair</object-name>
    <object-name>air</object-name>
    <object-name>turbos</object-name>
    <object-name>bouchons</object-name>
    <object-name>prises</object-name>
    <object-name>porteairGG</object-name>
    <object-name>porteairGD</object-name>
    <object-name>porteairDG</object-name>
    <object-name>porteairDD</object-name>
    <object-name>canope</object-name>
    <object-name>fenetreG</object-name>
    <object-name>fenetreD</object-name>

    <object-name>trous</object-name>
    <object-name>guns</object-name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>

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

    <ambient>
      <red-prop>ambient/red</red-prop>
      <green-prop>ambient/green</green-prop>
      <blue-prop>ambient/blue</blue-prop>
    </ambient>
-->
    <specular>
      <red-prop>specular/red</red-prop>
      <green-prop>specular/green</green-prop>
      <blue-prop>specular/blue</blue-prop>
    </specular>

    <emission>
      <red-prop>emission/red</red-prop>
      <green-prop>emission/green</green-prop>
      <blue-prop>emission/blue</blue-prop>
    </emission>
<!--
    <shininess>
      <shininess-prop>shininess</shininess-prop>
    </shininess>
-->
  </animation>

  <effect>
    <inherits-from>Aircraft/Generic/Effects/Fuselagereflect</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>ailes</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG1</object-name>
    <object-name>voletG2</object-name>
    <object-name>voletD1</object-name>
    <object-name>voletD2</object-name>
    <object-name>ailes2</object-name>
    <object-name>directionG</object-name>
    <object-name>directionD</object-name>
    <object-name>profondeur</object-name>
    <object-name>moteurs</object-name>
    <object-name>porteA</object-name>
    <object-name>porteGE</object-name>
    <object-name>porteGI</object-name>
    <object-name>porteDI</object-name>
    <object-name>porteDE</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>entreeair</object-name>
    <object-name>air</object-name>
    <object-name>turbos</object-name>
    <object-name>prises</object-name>
    <object-name>bouchons</object-name>
    <object-name>porteairGG</object-name>
    <object-name>porteairGD</object-name>
    <object-name>porteairDG</object-name>
    <object-name>porteairDD</object-name>
    <object-name>canope</object-name>
    <object-name>fenetreG</object-name>
    <object-name>fenetreD</object-name>
  </effect>

  <animation>
    <type>shader</type>
    <shader>chrome</shader>
    <texture>Aircraft/Generic/Effects/glass_shader.png</texture>
    <object-name>vitres</object-name>
    <object-name>vitrecanope</object-name>
    <object-name>vitrefenG</object-name>
    <object-name>vitrefenD</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>vitres</object-name>
    <object-name>vitrecanope</object-name>
    <object-name>vitrefenG</object-name>
    <object-name>vitrefenD</object-name>
    <object-name>propblurG</object-name>
    <object-name>propblurD</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propdiscD</object-name>
  </animation>

  <!-- Rentré des roues Temporairement disparition/apparition des roues -->
  <animation>
    <type>select</type>
    <object-name>roueA</object-name>
    <object-name>roueG</object-name>
    <object-name>roueD</object-name>
    <condition>
      <not>
        <equals>
          <property>gear/gear[0]/position-norm</property>
          <value>0</value>
        </equals>
      </not>
    </condition>
  </animation>

  <!-- Une ombre pour OSG -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/shadow.xml</path>
  </model>

  <!-- Intérieur -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Interior/interior.xml</path>
    <offsets>
      <x-m> 0 </x-m>
      <y-m> 0 </y-m>
      <z-m> 0 </z-m>
    </offsets>
  </model>

  <!-- Cranking effects -->
  <!-- Left -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.030 </x-m>
      <y-m> -2.257 </y-m>
      <z-m>  0.587 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg> -45 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Right -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.030 </x-m>
      <y-m>  2.551 </y-m>
      <z-m>  0.587 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg> -45 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Effets sur le sol -->
  <!-- Roue avant -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -4.383 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -2.247 </z-m>
    </offsets>
  </model>

  <!-- Roues gauches -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/ground/ground1.xml</path>
    <offsets>
      <x-m> -1.360 </x-m>
      <y-m> -2.502 </y-m>
      <z-m> -1.635 </z-m>
    </offsets>
  </model>

  <!-- Roues droites -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/ground/ground2.xml</path>
    <offsets>
      <x-m> -1.360 </x-m>
      <y-m>  2.502 </y-m>
      <z-m> -1.635 </z-m>
    </offsets>
  </model>

  <!-- Effets de tir -->
  <!-- Extérieur gauche -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.333 </x-m>
      <y-m> -0.245 </y-m>
      <z-m>  0.210 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg> 180 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!--Extérieur droit -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.333 </x-m>
      <y-m>  0.245 </y-m>
      <z-m>  0.210 </z-m>
     <roll-deg>    0 </roll-deg>
      <pitch-deg> 180 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Central gauche -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.434 </x-m>
      <y-m> -0.093 </y-m>
      <z-m>  0.323 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg> 180 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Central droit -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.624 </x-m>
      <y-m>  0.093 </y-m>
      <z-m>  0.323 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg> 180 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Canon -->
  <model>
    <path>Aircraft/Lockheed-P38/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.498 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.161 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg> 180 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Les hélices --> 
  <animation>
    <name>HeliceCompleteG</name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>heliceG</object-name>
    <object-name>bolGE</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscG</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>1100</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblurG</object-name>
    <condition>
    <and>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>500.000</value>
      </greater-than>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1100.001</value>
      </less-than>
    </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceG</object-name>
    <condition>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1100</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceCompleteG</object-name>
    <property>engines/engine[0]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> -4.189 </x-m>
      <y-m> -2.404 </y-m>
      <z-m>  0.129 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>HeliceCompleteD</name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>heliceD</object-name>
    <object-name>bolD</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdiscD</object-name>
    <condition>
      <greater-than>
        <property>engines/engine[1]/rpm</property>
        <value>1100</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblurD</object-name>
    <condition>
    <and>
      <greater-than>
        <property>engines/engine[1]/rpm</property>
        <value>500.000</value>
      </greater-than>
      <less-than>
        <property>engines/engine[1]/rpm</property>
        <value>1100.001</value>
      </less-than>
    </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>heliceD</object-name>
    <condition>
      <less-than>
        <property>engines/engine[1]/rpm</property>
        <value>1100</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceCompleteD</object-name>
    <property>engines/engine[1]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> -4.189 </x-m>
      <y-m>  2.404 </y-m>
      <z-m>  0.129 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </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> -1.313 </x1-m>
      <y1-m> -7.369 </y1-m>
      <z1-m>  0.668 </z1-m>
      <x2-m> -1.018 </x2-m>
      <y2-m> -4.572 </y2-m>
      <z2-m>  0.414 </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> -1.018 </x1-m>
      <y1-m>  4.572 </y1-m>
      <z1-m>  0.414 </z1-m>
      <x2-m> -1.313 </x2-m>
      <y2-m>  7.369 </y2-m>
      <z2-m>  0.668 </z2-m>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
     <x-m> 4.990 </x-m>
     <y-m> 0.000 </y-m>
     <z-m> 0.620 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>translate</type>
    <object-name>voletG1</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -0.7 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletG1</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -60 </factor>
    <axis>
      <x1-m> -1.247 </x1-m>
      <y1-m> -4.565 </y1-m>
      <z1-m>  0.406 </z1-m>
      <x2-m> -0.949 </x2-m>
      <y2-m> -2.916 </y2-m>
      <z2-m>  0.234 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>voletG2</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -0.7 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletG2</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -60 </factor>
    <axis>
      <x1-m> -0.781 </x1-m>
      <y1-m> -1.860 </y1-m>
      <z1-m>  0.124 </z1-m>
      <x2-m> -0.627 </x2-m>
      <y2-m> -0.785 </y2-m>
      <z2-m>  0.011 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>voletD1</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -0.7 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD1</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -60 </factor>
    <axis>
      <x1-m> -0.949 </x1-m>
      <y1-m>  2.916 </y1-m>
      <z1-m>  0.234 </z1-m>
      <x2-m> -1.247 </x2-m>
      <y2-m>  4.565 </y2-m>
      <z2-m>  0.406 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>voletD2</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -0.7 </factor>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD2</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> -60 </factor>
    <axis>
      <x1-m> -0.627 </x1-m>
      <y1-m>  0.785 </y1-m>
      <z1-m>  0.011 </z1-m>
      <x2-m> -0.781 </x2-m>
      <y2-m>  1.860 </y2-m>
      <z2-m>  0.124 </z2-m>
    </axis>
  </animation>

  <!-- Gouvernes de direction -->
  <animation>
    <type>rotate</type>
    <object-name>directionG</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 20 </factor>
    <center>
      <x-m>  5.057 </x-m>
      <y-m> -2.404 </y-m>
      <z-m>  0.870 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z> -1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>directionD</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 20 </factor>
    <center>
      <x-m> 5.057 </x-m>
      <y-m> 2.404 </y-m>
      <z-m> 0.870 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  0 </y>
      <z> -1 </z>
    </axis>
  </animation>

  <!-- Animation des portes des train -->
  <animation>
    <type>rotate</type>
    <object-name>porteA</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.10 </ind><dep> 95 </dep></entry>
      <entry><ind> 1.00 </ind><dep> 95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -3.133 </x1-m>
      <y1-m>  0.142 </y1-m>
      <z1-m> -0.636 </z1-m>
      <x2-m> -2.654 </x2-m>
      <y2-m>  0.142 </y2-m>
      <z2-m> -0.635 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteGE</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.15 </ind><dep> -70 </dep></entry>
      <entry><ind> 1.00 </ind><dep> -70 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.212 </x1-m>
      <y1-m> -2.757 </y1-m>
      <z1-m> -0.093 </z1-m>
      <x2-m>  0.871 </x2-m>
      <y2-m> -2.707 </y2-m>
      <z2-m>  0.091 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteDE</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.15 </ind><dep> 70 </dep></entry>
      <entry><ind> 1.00 </ind><dep> 70 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.212 </x1-m>
      <y1-m>  2.757 </y1-m>
      <z1-m> -0.093 </z1-m>
      <x2-m>  0.871 </x2-m>
      <y2-m>  2.707 </y2-m>
      <z2-m>  0.091 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteGI</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.15 </ind><dep> 70 </dep></entry>
      <entry><ind> 1.00 </ind><dep> 70 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.212 </x1-m>
      <y1-m> -2.051 </y1-m>
      <z1-m> -0.093 </z1-m>
      <x2-m>  0.871 </x2-m>
      <y2-m> -2.102 </y2-m>
      <z2-m>  0.091 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteDI</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.15 </ind><dep> -70 </dep></entry>
      <entry><ind> 1.00 </ind><dep> -70 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.212 </x1-m>
      <y1-m>  2.051 </y1-m>
      <z1-m> -0.093 </z1-m>
      <x2-m>  0.871 </x2-m>
      <y2-m>  2.102 </y2-m>
      <z2-m>  0.091 </z2-m>
    </axis>
  </animation>

  <!-- Rentré des roues -->
  <animation>
    <name>TrainAvant</name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainAvant</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> -88 </dep></entry>
      <entry><ind> 0.8 </ind><dep>   0 </dep></entry>
      <entry><ind> 1.0 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.060 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.085 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainGauche</name>
    <object-name>axeGH</object-name>
    <object-name>axeGB</object-name>
    <object-name>roueG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainGauche</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> -97 </dep></entry>
      <entry><ind> 0.8 </ind><dep>   0 </dep></entry>
      <entry><ind> 1.0 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.162 </x-m>
      <y-m> -2.438 </y-m>
      <z-m>  0.217 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainDroit</name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</object-name>
    <object-name>roueD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainDroit</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> -97 </dep></entry>
      <entry><ind> 0.8 </ind><dep>   0 </dep></entry>
      <entry><ind> 1.0 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.162 </x-m>
      <y-m>  2.438 </y-m>
      <z-m>  0.217 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Compression -->
  <animation>
    <name>RoueAvant</name>
    <object-name>roueA</object-name>
    <object-name>axeAB</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>RoueAvant</object-name>
    <property>/gear/gear[0]/compression-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -0.08 </dep></entry>
      <entry><ind> 0.13 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0.29 </dep></entry>
    </interpolation>
    <axis>
      <x> 0.090354 </x>
      <y> 0.000399 </y>
      <z> 0.499794 </z>
    </axis>
  </animation>

  <animation>
    <name>RoueGauche</name>
    <object-name>roueG</object-name>
    <object-name>axeGB</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>RoueGauche</object-name>
    <property>/gear/gear[1]/compression-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -0.08 </dep></entry>
      <entry><ind> 0.13 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0.29 </dep></entry>
    </interpolation>
    <axis>
      <x> 0.064125 </x>
      <y> 0.000000 </y>
      <z> 0.457960 </z>
    </axis>
  </animation>

  <animation>
    <name>RoueDroite</name>
    <object-name>roueD</object-name>
    <object-name>axeDB</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>RoueDroite</object-name>
    <property>/gear/gear[2]/compression-norm</property>
    <interpolation>
      <entry><ind> 0.00 </ind><dep> -0.08 </dep></entry>
      <entry><ind> 0.13 </ind><dep>  0.00 </dep></entry>
      <entry><ind> 1.00 </ind><dep>  0.29 </dep></entry>
    </interpolation>
    <axis>
      <x> 0.064125 </x>
      <y> 0.000000 </y>
      <z> 0.457960 </z>
    </axis>
  </animation>

  <!-- Rotation de la roue avant en fonction de la gouverne de direction -->
  <animation>
    <name>RoueAvant</name>
    <object-name>axeAB</object-name>
    <object-name>roueA</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>RoueAvant</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -10 </factor>
    <axis>
      <x1-m> -4.113 </x1-m>
      <y1-m>  0.000 </y1-m>
      <z1-m> -0.157 </z1-m>
      <x2-m> -4.294 </x2-m>
      <y2-m>  0.000 </y2-m>
      <z2-m> -1.157 </z2-m>
    </axis>
  </animation>

  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueA</object-name>
    <property>gear/gear[0]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -4.383 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.611 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueG</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.360 </x-m>
      <y-m> -2.502 </y-m>
      <z-m> -1.193 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <property>gear/gear[2]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m> -1.360 </x-m>
      <y-m>  2.502 </y-m>
      <z-m> -1.193 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <name>CanopeHaut</name>
    <object-name>canope</object-name>
    <object-name>vitrecanope</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>CanopeHaut</object-name>
    <property>instrumentation/doors/crew/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 120 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.850 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  1.044 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>FenetreGauche</name>
    <object-name>fenetreG</object-name>
    <object-name>vitrefenG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>FenetreGauche</object-name>
    <property>instrumentation/doors/passenger/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 25 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.189 </x-m>
      <y-m>  0.378 </y-m>
      <z-m>  0.402 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>FenetreDroite</name>
    <object-name>fenetreD</object-name>
    <object-name>vitrefenD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>FenetreDroite</object-name>
    <property>instrumentation/doors/passenger/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -25 </dep></entry>
    </interpolation>
    <center>
      <x-m> -2.189 </x-m>
      <y-m> -0.378 </y-m>
      <z-m>  0.402 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>

