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

<PropertyList>

  <path>p166.ac</path>

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

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

  <animation>
    <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>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>moteurs</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>antenne</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>baieA</object-name>
    <object-name>baieB</object-name>
    <object-name>tanks</object-name>
    <object-name>porteA</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteGB</object-name>
    <object-name>porteDB</object-name>
    <object-name>supportlampes</object-name>
    <object-name>underrudder</object-name>
    <object-name>FLIR_Head</object-name>
    <object-name>FLIR_Base</object-name>
    <object-name>FLIR_Deflector</object-name>
    <object-name>FLIR_Support</object-name>
    <object-name>SearchLight_Support</object-name>

    <object-name>axeA</object-name>
    <object-name>roueA</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>
    <object-name>echappes</object-name>
    <object-name>radar</object-name>
    <object-name>SearchLight</object-name>

    <!-- Transparence -->
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>vitrebaieA</object-name>
    <object-name>vitrebaieB</object-name>
    <object-name>lampebeacon</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>FLIRvitre</object-name>
    <object-name>SearchLightVitre</object-name>
    <!-- HDR mode -->
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporteG</object-name>
    <object-name>HDRvitreporteD</object-name>
    <object-name>HDRvitrebaieA</object-name>
    <object-name>HDRvitrebaieB</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>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>moteurs</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>antenne</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>baieA</object-name>
    <object-name>baieB</object-name>
    <object-name>tanks</object-name>
    <object-name>porteA</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteGB</object-name>
    <object-name>porteDB</object-name>
    <object-name>supportlampes</object-name>
    <object-name>underrudder</object-name>
    <object-name>FLIR_Head</object-name>
    <object-name>FLIR_Base</object-name>
    <object-name>FLIR_Deflector</object-name>
    <object-name>FLIR_Support</object-name>
    <object-name>SearchLight_Support</object-name>
    <object-name>axeA</object-name>
    <object-name>roueA</object-name>
    <object-name>axeG</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>roueD</object-name>
    <object-name>heliceG</object-name>
    <object-name>heliceD</object-name>
    <object-name>echappes</object-name>
    <object-name>radar</object-name>
    <object-name>SearchLight</object-name>
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>vitrebaieA</object-name>
    <object-name>vitrebaieB</object-name>
    <object-name>lampebeacon</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>FLIRvitre</object-name>
    <object-name>SearchLightVitre</object-name>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporteG</object-name>
    <object-name>HDRvitreporteD</object-name>
    <object-name>HDRvitrebaieA</object-name>
    <object-name>HDRvitrebaieB</object-name>

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

  <effect>
    <inherits-from>Aircraft/Piaggio-P166/Models/Effects/Bump/bumpspec</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>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>moteurs</object-name>
    <object-name>bolG</object-name>
    <object-name>bolD</object-name>
    <object-name>antenne</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>baieA</object-name>
    <object-name>baieB</object-name>
    <object-name>tanks</object-name>
    <object-name>porteA</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteGB</object-name>
    <object-name>porteDB</object-name>
    <object-name>supportlampes</object-name>
    <object-name>underrudder</object-name>
    <object-name>FLIR_Head</object-name>
    <object-name>FLIR_Base</object-name>
    <object-name>FLIR_Deflector</object-name>
    <object-name>FLIR_Support</object-name>
    <object-name>SearchLight_Support</object-name>
  </effect>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>Effects/Glass/glassrain</inherits-from>
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>vitrebaieA</object-name>
    <object-name>vitrebaieB</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/Glass/glass</inherits-from>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporteG</object-name>
    <object-name>HDRvitreporteD</object-name>
    <object-name>HDRvitrebaieA</object-name>
    <object-name>HDRvitrebaieB</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> -->
      <property>sim/multiplay/generic/bool[2]</property>
    </condition>
    <object-name>HDRvitres</object-name>
    <object-name>HDRvitreporteG</object-name>
    <object-name>HDRvitreporteD</object-name>
    <object-name>HDRvitrebaieA</object-name>
    <object-name>HDRvitrebaieB</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <!-- <not><property>sim/rendering/hdr/hdr-enabled</property></not> -->
      <not><property>sim/multiplay/generic/bool[2]</property></not>
    </condition>
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>vitrebaieA</object-name>
    <object-name>vitrebaieB</object-name>
  </animation>

  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>lampebeacon</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</object-name>
    <object-name>FLIRvitre</object-name>
    <object-name>SearchLightVitre</object-name>
  </effect>

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

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

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

  <model>
    <path>Effects/trail/all-trails.xml</path>
  </model>

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

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

  <!-- Radar visible ou non -->
  <animation>
    <type>select</type>
    <object-name>radar</object-name>
    <condition>
      <!-- <property>sim/model/show-radar</property> -->
      <property>sim/multiplay/generic/bool[0]</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>FLIR_Support</object-name>
    <condition>
      <or>
        <!-- <property>sim/model/show-radar</property> -->
        <property>sim/multiplay/generic/bool[0]</property>
        <!-- <property>sim/model/show-flir</property> -->
        <property>sim/multiplay/generic/bool[7]</property>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>SearchLight_Support</object-name>
    <condition>
      <or>
        <!-- <property>sim/model/show-radar</property> -->
        <property>sim/multiplay/generic/bool[0]</property>
        <!-- <property>sim/model/show-searchlight</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
      </or>
    </condition>
  </animation>

  <!-- Search-Light -->
  <animation>
    <type>select</type>
    <object-name>SearchLight</object-name>
    <object-name>SearchLightVitre</object-name>
    <condition>
      <!-- <property>sim/model/show-searchlight</property> -->
      <property>sim/multiplay/generic/bool[6]</property>
    </condition>
  </animation>

  <!-- FLIR -->
  <animation>
    <type>select</type>
    <object-name>FLIR_Head</object-name>
    <object-name>FLIR_Base</object-name>
    <object-name>FLIR_Deflector</object-name>
    <object-name>FLIRvitre</object-name>
    <condition>
      <!-- <property>sim/model/show-flir</property> -->
      <property>sim/multiplay/generic/bool[7]</property>
    </condition>
  </animation>

  <!-- Tail Fin show or not -->
  <animation>
    <type>select</type>
    <object-name>underrudder</object-name>
    <condition>
      <!-- <property>sim/model/show-underrudder</property> -->
      <property>sim/multiplay/generic/bool[17]</property>
    </condition>
  </animation>

  <!-- Les hélices -->
  <animation>
    <name>HeliceGauche</name>
    <object-name>bolG</object-name>
    <object-name>heliceG</object-name>
    <object-name>propdiscG</object-name>
    <object-name>propblurG</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>1500</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>600.000</value>
      </greater-than>
      <less-than>
        <property>engines/engine[0]/rpm</property>
        <value>1500.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>1500</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceGauche</object-name>
    <condition>
      <!-- <not><property>controls/engines/engine[0]/cutoff</property></not> -->
      <not><property>sim/multiplay/generic/bool[8]</property></not>
    </condition>
    <!-- <property>engines/engine[0]/n1</property> -->
    <property>sim/multiplay/generic/float[4]</property>
    <factor> 2 </factor>
    <center>
      <x-m>  1.30217 </x-m>
      <y-m> -1.90181 </y-m>
      <z-m> -0.18486 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>HeliceDroite</name>
    <object-name>bolD</object-name>
    <object-name>heliceD</object-name>
    <object-name>propdiscD</object-name>
    <object-name>propblurD</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>1500</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>600.000</value>
      </greater-than>
      <less-than>
        <property>engines/engine[1]/rpm</property>
        <value>1500.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>1500</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceDroite</object-name>
    <condition>
      <!-- <not><property>controls/engines/engine[1]/cutoff</property></not> -->
      <not><property>sim/multiplay/generic/bool[9]</property></not>
    </condition>
    <!-- <property>engines/engine[1]/n1</property> -->
    <property>sim/multiplay/generic/float[5]</property>
    <factor> 2 </factor>
    <center>
      <x-m>  1.30217 </x-m>
      <y-m>  1.90181 </y-m>
      <z-m> -0.18486 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <!-- <property>controls/flight/rudder</property> -->
    <property>surface-positions/rudder-pos-norm</property>
    <factor> -15 </factor>
    <axis>
      <x1-m> 5.08690 </x1-m>
      <y1-m> 0.00000 </y1-m>
      <z1-m> 0.22841 </z1-m>
      <x2-m> 5.48307 </x2-m>
      <y2-m> 0.00000 </y2-m>
      <z2-m> 2.21668 </z2-m>
    </axis>
  </animation>

  <!-- Gouverne de profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>
    <!-- <property>controls/flight/elevator</property> -->
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 15 </factor>
    <center>
      <x-m> 4.99017 </x-m>
      <y-m> 0.00000 </y-m>
      <z-m> 0.13627 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </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>  0.30326 </x1-m>
      <y1-m> -6.44572 </y1-m>
      <z1-m> -0.18340 </z1-m>
      <x2-m>  0.32011 </x2-m>
      <y2-m> -4.27987 </y2-m>
      <z2-m> -0.23654 </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>  0.32011 </x1-m>
      <y1-m>  4.27987 </y1-m>
      <z1-m> -0.23654 </z1-m>
      <x2-m>  0.30326 </x2-m>
      <y2-m>  6.44572 </y2-m>
      <z2-m> -0.18340 </z2-m>
    </axis>
  </animation>

  <!-- Animations des volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletG1</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 40 </dep></entry>
    </interpolation>
    <axis>
      <x1-m>  0.26683 </x1-m>
      <y1-m> -4.27987 </y1-m>
      <z1-m> -0.29601 </z1-m>
      <x2-m>  0.27589 </x2-m>
      <y2-m> -2.40742 </y2-m>
      <z2-m> -0.35307 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletG2</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 40 </dep></entry>
    </interpolation>
    <axis>
      <x1-m>  0.26893 </x1-m>
      <y1-m> -1.41693 </y1-m>
      <z1-m> -0.56180 </z1-m>
      <x2-m>  0.27242 </x2-m>
      <y2-m> -0.73116 </y2-m>
      <z2-m> -0.79496 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD1</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 40 </dep></entry>
    </interpolation>
    <axis>
      <x1-m>  0.27589 </x1-m>
      <y1-m>  2.40742 </y1-m>
      <z1-m> -0.35307 </z1-m>
      <x2-m>  0.26683 </x2-m>
      <y2-m>  4.27987 </y2-m>
      <z2-m> -0.29601 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD2</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 40 </dep></entry>
    </interpolation>
    <axis>
      <x1-m>  0.27242 </x1-m>
      <y1-m>  0.73116 </y1-m>
      <z1-m> -0.79496 </z1-m>
      <x2-m>  0.26893 </x2-m>
      <y2-m>  1.41693 </y2-m>
      <z2-m> -0.56180 </z2-m>
    </axis>
  </animation>

  <!-- Animation des portes -->
  <animation>
    <type>rotate</type>
    <object-name>porteA</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> 110 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.93479 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.83892 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAG</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.1 </ind><dep> -95 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -4.43677 </x1-m>
      <y1-m> -0.11580 </y1-m>
      <z1-m> -1.93431 </z1-m>
      <x2-m> -4.04176 </x2-m>
      <y2-m> -0.11580 </y2-m>
      <z2-m> -1.96990 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAD</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.1 </ind><dep> -90 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -90 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -4.04176 </x1-m>
      <y1-m>  0.11580 </y1-m>
      <z1-m> -1.96990 </z1-m>
      <x2-m> -4.43677 </x2-m>
      <y2-m>  0.11580 </y2-m>
      <z2-m> -1.93431 </z2-m>
    </axis>
  </animation>

  <!-- Rentré des roues -->
  <animation>
    <name>TrainAvant</name>
    <object-name>axeA</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 </ind><dep> -85 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.70823 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.65968 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainGauche</name>
    <object-name>porteGB</object-name>
    <object-name>axeG</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 </ind><dep> -115 </dep></entry>
      <entry><ind> 1 </ind><dep>    0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.24709 </x-m>
      <y-m> -0.65635 </y-m>
      <z-m> -1.66456 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainDroit</name>
    <object-name>porteDB</object-name>
    <object-name>axeD</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 </ind><dep> 115 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.24709 </x-m>
      <y-m>  0.65635 </y-m>
      <z-m> -1.66456 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Suspensions -->
  <animation>
    <name>AxeAvant</name>
    <object-name>roueA</object-name>
    <object-name>axeA</object-name>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>AxeAvant</object-name>
    <!-- <property>gear/gear[0]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[13]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0.0000 </dep></entry>
      <entry><ind> 1 </ind><dep> -0.0653 </dep></entry>
    </interpolation>
    <center>
      <x-m> -4.76871 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -1.97211 </z-m>
    </center>
    <axis>
      <x> -0.013 </x>
      <y>  0.000 </y>
      <z> -0.064 </z>
    </axis>
  </animation>

  <animation>
    <name>AxeGauche</name>
    <object-name>roueG</object-name>
    <object-name>axeG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AxeGauche</object-name>
    <!-- <property>gear/gear[1]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[14]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> -7 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.24709 </x-m>
      <y-m> -0.65635 </y-m>
      <z-m> -1.66456 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>AxeDroite</name>
    <object-name>roueD</object-name>
    <object-name>axeD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>AxeDroite</object-name>
    <!-- <property>gear/gear[2]/compression-norm</property> -->
    <property>sim/multiplay/generic/float[15]</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0 </dep></entry>
      <entry><ind> 1 </ind><dep> 7 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.24709 </x-m>
      <y-m>  0.65635 </y-m>
      <z-m> -1.66456 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Rotation de la roue avant en fonction de la gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>TrainAvant</object-name>
    <!-- <property>gear/gear[0]/caster-angle-deg</property> -->
    <property>sim/multiplay/generic/float[18]</property>
    <factor> -0.6 </factor>
    <axis>
      <x1-m> -4.76871 </x1-m>
      <y1-m>  0.00000 </y1-m>
      <z1-m> -1.97211 </z1-m>
      <x2-m> -4.71264 </x2-m>
      <y2-m>  0.00000 </y2-m>
      <z2-m> -1.66006 </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> -->
    <property>sim/multiplay/generic/float[8]</property>
    <factor> -30 </factor>
    <center>
      <x-m> -4.81994 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m> -2.23021 </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> -->
    <property>sim/multiplay/generic/float[9]</property>
    <factor> -30 </factor>
    <axis>
      <x1-m> -0.24709 </x1-m>
      <y1-m> -1.43920 </y1-m>
      <z1-m> -2.06862 </z1-m>
      <x2-m> -0.24709 </x2-m>
      <y2-m> -1.27753 </y2-m>
      <z2-m> -2.05000 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <!-- <property>gear/gear[2]/rollspeed-ms</property> -->
    <property>sim/multiplay/generic/float[10]</property>
    <factor> -30 </factor>
    <axis>
      <x1-m> -0.24709 </x1-m>
      <y1-m>  1.27753 </y1-m>
      <z1-m> -2.05000 </z1-m>
      <x2-m> -0.24709 </x2-m>
      <y2-m>  1.43920 </y2-m>
      <z2-m> -2.06862 </z2-m>
    </axis>
  </animation>

  <!-- Les portes -->
  <animation>
    <type>pick</type>
    <object-name>porteG</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>HDRvitreporteG</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>HDRvitreporteG</object-name>
    <!-- <property>sim/model/door-positions/crew/position-norm</property> -->
    <property>sim/multiplay/generic/float[0]</property>
    <factor> -70 </factor>
    <axis>
      <x1-m> -3.97336 </x1-m>
      <y1-m> -0.68316 </y1-m>
      <z1-m> -1.46115 </z1-m>
      <x2-m> -3.96149 </x2-m>
      <y2-m> -0.67606 </y2-m>
      <z2-m> -1.02804 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>porteD</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>HDRvitreporteD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>HDRvitreporteD</object-name>
    <!-- <property>sim/model/door-positions/passenger/position-norm</property> -->
    <property>sim/multiplay/generic/float[1]</property>
    <factor> 70 </factor>
    <axis>
      <x1-m> -3.97336 </x1-m>
      <y1-m>  0.68316 </y1-m>
      <z1-m> -1.46115 </z1-m>
      <x2-m> -3.96149 </x2-m>
      <y2-m>  0.67606 </y2-m>
      <z2-m> -1.02804 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>baieA</object-name>
    <object-name>vitrebaieA</object-name>
    <object-name>HDRvitrebaieA</object-name>
    <object-name>baieB</object-name>
    <object-name>vitrebaieB</object-name>
    <object-name>HDRvitrebaieB</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <condition>
          <and>
            <property>gear/gear[0]/wow</property>
            <property>gear/gear[1]/wow</property>
            <property>gear/gear[2]/wow</property>
            <less-than>
              <property>gear/gear[0]/rollspeed-ms</property>
              <value>10</value>
            </less-than>
          </and>
        </condition>
        <command>nasal</command>
        <script>doors.cargo.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>baieA</object-name>
    <object-name>vitrebaieA</object-name>
    <object-name>HDRvitrebaieA</object-name>
    <!-- <property>sim/model/door-positions/cargo/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> -70 </factor>
    <axis>
      <x1-m> -3.09073 </x1-m>
      <y1-m> -0.77442 </y1-m>
      <z1-m> -1.60272 </z1-m>
      <x2-m> -3.07534 </x2-m>
      <y2-m> -0.76457 </y2-m>
      <z2-m> -0.90860 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>baieB</object-name>
    <object-name>vitrebaieB</object-name>
    <object-name>HDRvitrebaieB</object-name>
    <!-- <property>sim/model/door-positions/cargo/position-norm</property> -->
    <property>sim/multiplay/generic/float[11]</property>
    <factor> 70 </factor>
    <axis>
      <x1-m> -1.70571 </x1-m>
      <y1-m> -0.80247 </y1-m>
      <z1-m> -1.62615 </z1-m>
      <x2-m> -1.68984 </x2-m>
      <y2-m> -0.79026 </y2-m>
      <z2-m> -0.91031 </z2-m>
    </axis>
  </animation>

  <!-- ******************************************* -->
  <animation>
    <type>rotate</type>
    <object-name>FLIR_Base</object-name>
    <object-name>FLIR_Head</object-name>
    <object-name>FLIRvitre</object-name>
    <!-- <property>sim/model/turret[0]/heading</property> -->
    <property>sim/multiplay/generic/float[16]</property>
    <factor>-1</factor>
    <center>
      <x-m> -0.71373 </x-m>
      <y-m> -4.27165 </y-m>
      <z-m> -0.62194 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>FLIR_Head</object-name>
    <object-name>FLIRvitre</object-name>
    <!-- <property>sim/model/turret[0]/pitch</property> -->
    <property>sim/multiplay/generic/float[17]</property>
    <factor>1</factor>
    <center>
      <x-m> -0.71373 </x-m>
      <y-m> -4.27165 </y-m>
      <z-m> -0.62194 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
