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

<PropertyList>

  <path>me262hg3.ac</path>

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/ME-262HGIII/Models/Liveries", 10);
    </load>
    <unload>
      livery_update.stop();
    </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>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>derive</object-name>
    <object-name>direction</object-name>
    <object-name>profondeurG</object-name>
    <object-name>profondeurD</object-name>
    <object-name>axeA</object-name>
    <object-name>axeB</object-name>
    <object-name>roueA</object-name>
    <object-name>porteA1</object-name>
    <object-name>porteA2</object-name>
    <object-name>axeG</object-name>
    <object-name>axeGH</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>roueG</object-name>
    <object-name>axeD</object-name>
    <object-name>axeDH</object-name>
    <object-name>roueD</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>boutsmoteurs</object-name>
    <object-name>heliceG1</object-name>
    <object-name>heliceG2</object-name>
    <object-name>heliceD1</object-name>
    <object-name>heliceD2</object-name>
    <object-name>trous</object-name>
    <object-name>guns</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
  </animation>

  <animation>
    <type>shader</type>
    <shader>chrome</shader>
    <texture>glass_shader.png</texture>
    <object-name>vitres</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>vitres</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>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>derive</object-name>
    <object-name>direction</object-name>
    <object-name>profondeurG</object-name>
    <object-name>profondeurD</object-name>
    <object-name>axeA</object-name>
    <object-name>axeB</object-name>
    <object-name>roueA</object-name>
    <object-name>porteA1</object-name>
    <object-name>porteA2</object-name>
    <object-name>axeG</object-name>
    <object-name>axeGH</object-name>
    <object-name>roueG</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>axeD</object-name>
    <object-name>axeDH</object-name>
    <object-name>roueD</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>boutsmoteurs</object-name>
    <object-name>heliceG1</object-name>
    <object-name>heliceG2</object-name>
    <object-name>heliceD1</object-name>
    <object-name>heliceD2</object-name>
    <object-name>trous</object-name>
    <object-name>guns</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>

  <!-- Une ombre pour OSG -->
  <model>
    <name>shadowOSG</name>
    <path>Aircraft/ME-262HGIII/Models/shadow.xml</path>
  </model>

  <animation>
    <type>select</type>
    <object-name>shadowOSG</object-name>
    <condition>
      <equals>
        <property>sim[0]/rendering/shadows-ai</property>
        <value>true</value>
      </equals>
    </condition>
  </animation>

  <!-- Interieur -->
  <model>
    <path>Aircraft/ME-262HGIII/Models/Interior/interior.xml</path>
    <offsets>
      <x-m> 0 </x-m>
      <y-m> 0 </y-m>
      <z-m> 0 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg>   0 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Les flammes -->
  <!-- Gauche -->
  <model>
    <path>Aircraft/ME-262HGIII/Models/effects/flammes/flammesG.xml</path>
    <offsets>
      <x-m>  2.227 </x-m>
      <y-m> -1.095 </y-m>
      <z-m> -0.888 </z-m>
    </offsets>
  </model>

  <!-- Les flammes -->
  <!-- Droite -->
  <model>
    <path>Aircraft/ME-262HGIII/Models/effects/flammes/flammesD.xml</path>
    <offsets>
      <x-m>  2.227 </x-m>
      <y-m>  1.095 </y-m>
      <z-m> -0.888 </z-m>
    </offsets>
  </model>

  <!-- Particules OSG -->
  <!-- Gauche -->
  <model>
    <path>Aircraft/ME-262HGIII/Models/effects/trailL.xml</path>
    <offsets>
      <x-m>  2.051 </x-m>
      <y-m> -1.095 </y-m>
      <z-m> -0.888 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg>   0 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Droite -->
  <model>
    <path>Aircraft/ME-262HGIII/Models/effects/trailR.xml</path>
    <offsets>
      <x-m>  2.051 </x-m>
      <y-m>  1.095 </y-m>
      <z-m> -0.888 </z-m>
      <roll-deg>    0 </roll-deg>
      <pitch-deg>   0 </pitch-deg>
      <heading-deg> 0 </heading-deg>
    </offsets>
  </model>

  <!-- Effets de tir -->
  <!-- Haut gauche -->
  <model>
    <path>Aircraft/ME-262/Models/effects/guns/fire.xml</path>
    <offsets>
      <x-m> -4.815 </x-m>
      <y-m> -0.106 </y-m>
      <z-m> -0.124 </z-m>
    </offsets>
  </model>

  <!-- Haut droite -->
  <model>
    <path>Aircraft/ME-262/Models/effects/guns/fire.xml</path>
    <offsets>
      <x-m> -4.815 </x-m>
      <y-m>  0.106 </y-m>
      <z-m> -0.124 </z-m>
    </offsets>
  </model>
  
  <!-- Bas gauche -->
  <model>
    <path>Aircraft/ME-262/Models/effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.041 </x-m>
      <y-m> -0.268 </y-m>
      <z-m> -0.254 </z-m>
    </offsets>
  </model>

  <!-- Bas droite -->
  <model>
    <path>Aircraft/ME-262/Models/effects/guns/fire.xml</path>
    <offsets>
      <x-m> -5.041 </x-m>
      <y-m>  0.268 </y-m>
      <z-m> -0.254 </z-m>
    </offsets>
  </model>

  <!-- Rotation des hélices des réacteurs -->
  <animation>
    <type>spin</type>
    <object-name>heliceG1</object-name>
    <property>/controls/engines/engine[0]/throttle</property>
    <factor> 100 </factor>
    <center>
      <x-m> -0.435 </x-m>
      <y-m> -1.095 </y-m>
      <z-m> -0.888 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>heliceG2</object-name>
    <property>/controls/engines/engine[0]/throttle</property>
    <factor> 100 </factor>
    <center>
      <x-m>  2.051 </x-m>
      <y-m> -1.095 </y-m>
      <z-m> -0.888 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>heliceD1</object-name>
    <property>/controls/engines/engine[1]/throttle</property>
    <factor> 100 </factor>
    <center>
      <x-m> -0.435 </x-m>
      <y-m>  1.095 </y-m>
      <z-m> -0.888 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>heliceD2</object-name>
    <property>/controls/engines/engine[1]/throttle</property>
    <factor> 100 </factor>
    <center>
      <x-m>  2.051 </x-m>
      <y-m>  1.095 </y-m>
      <z-m> -0.888 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeurG</object-name>
    <property>/controls/flight/elevator</property>
    <factor> 15 </factor>
    <axis>
      <x1-m>  5.943 </x1-m>
      <y1-m> -1.498 </y1-m>
      <z1-m>  0.047 </z1-m>
      <x2-m>  5.088 </x2-m>
      <y2-m> -0.092 </y2-m>
      <z2-m>  0.047 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>profondeurD</object-name>
    <property>/controls/flight/elevator</property>
    <factor> 15 </factor>
    <axis>
      <x1-m> 5.088 </x1-m>
      <y1-m> 0.092 </y1-m>
      <z1-m> 0.047 </z1-m>
      <x2-m> 5.943 </x2-m>
      <y2-m> 1.498 </y2-m>
      <z2-m> 0.047 </z2-m>
    </axis>
  </animation>

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <property>/surface-positions/rudder-pos-norm</property>
    <factor> -20.0 </factor>
    <center>
      <x-m> 5.581 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.391 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y> 
      <z> 1 </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.0</factor>
    <axis>
      <x1-m>  3.426 </x1-m>
      <y1-m> -4.899 </y1-m>
      <z1-m> -0.686 </z1-m>
      <x2-m>  1.636 </x2-m>
      <y2-m> -3.217 </y2-m>
      <z2-m> -0.775 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>
    <property>/surface-positions/right-aileron-pos-norm</property>
    <factor>-15.0</factor>
    <axis>
      <x1-m>  3.426 </x1-m>
      <y1-m>  4.899 </y1-m>
      <z1-m> -0.687 </z1-m>
      <x2-m>  1.636 </x2-m>
      <y2-m>  3.217 </y2-m>
      <z2-m> -0.775 </z2-m>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletG</object-name>
    <property>/surface-positions/flap-pos-norm</property>
    <factor>-45.0</factor>
    <axis>
      <x1-m>  0.237 </x1-m>
      <y1-m> -1.930 </y1-m>
      <z1-m> -0.938 </z1-m>
      <x2-m>  1.606 </x2-m>
      <y2-m> -3.217 </y2-m>
      <z2-m> -0.838 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD</object-name>
    <property>/surface-positions/flap-pos-norm</property>
    <factor>45.0</factor>
    <axis>
      <x1-m>  0.237 </x1-m>
      <y1-m>  1.930 </y1-m>
      <z1-m> -0.938 </z1-m>
      <x2-m>  1.606 </x2-m>
      <y2-m>  3.217 </y2-m>
      <z2-m> -0.838 </z2-m>
    </axis>
  </animation>

  <!-- Rentré des roues -->
  <animation>
    <name>TrainAvant</name>
    <object-name>roueA</object-name>
    <object-name>axeA</object-name>
    <object-name>axeB</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> -105 </dep></entry>
      <entry><ind> 1 </ind><dep>    0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -5.339 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.822 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainGauche</name>
    <object-name>roueG</object-name>
    <object-name>axeG</object-name>
    <object-name>axeGH</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> 75 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.056 </x-m>
      <y-m> -0.458 </y-m>
      <z-m> -1.183 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainGauche</object-name>
    <property>/gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> -90 </dep></entry>
      <entry><ind> 0.7 </ind><dep> -90 </dep></entry>
      <entry><ind> 1.0 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.056 </x-m>
      <y-m> -0.458 </y-m>
      <z-m> -1.183 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainDroit</name>
    <object-name>roueD</object-name>
    <object-name>axeD</object-name>
    <object-name>axeDH</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> 75 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.056 </x-m>
      <y-m>  0.458 </y-m>
      <z-m> -1.183 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TrainDroit</object-name>
    <property>/gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 90 </dep></entry>
      <entry><ind> 0.7 </ind><dep> 90 </dep></entry>
      <entry><ind> 1.0 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.056 </x-m>
      <y-m>  0.458 </y-m>
      <z-m> -1.183 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Fermeture des portes des trains -->
  <animation>
    <type>rotate</type>
    <object-name>porteA1</object-name>
    <property>/gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 94 </dep></entry>
    </interpolation>
    <center>
      <x-m> -5.406 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.920 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteA2</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>  -98 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -100 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -4.420 </x1-m>
      <y1-m> -0.225 </y1-m>
      <z1-m> -1.040 </z1-m>
      <x2-m> -3.935 </x2-m>
      <y2-m> -0.225 </y2-m>
      <z2-m> -1.107 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG1</object-name>
    <property>/gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.3 </ind><dep> 85 </dep></entry>
      <entry><ind> 0.7 </ind><dep> 85 </dep></entry>
      <entry><ind> 1.0 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.071 </x-m>
      <y-m> -0.021 </y-m>
      <z-m> -1.302 </z-m>
    </center>
    <axis>
      <x>  1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG2</object-name>
    <property>/gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>    0 </dep></entry>
      <entry><ind> 0.5 </ind><dep> -120 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -120 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.145 </x-m>
      <y-m> -0.432 </y-m>
      <z-m> -1.214 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD1</object-name>
    <property>/gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.3 </ind><dep> -85 </dep></entry>
      <entry><ind> 0.7 </ind><dep> -85 </dep></entry>
      <entry><ind> 1.0 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -1.071 </x-m>
      <y-m>  0.021 </y-m>
      <z-m> -1.302 </z-m>
    </center>
    <axis>
      <x>  1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD2</object-name>
    <property>/gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>    0 </dep></entry>
      <entry><ind> 0.5 </ind><dep> -120 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -120 </dep></entry>
    </interpolation>
    <center>
      <x-m>  0.145 </x-m>
      <y-m> -0.432 </y-m>
      <z-m> -1.214 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y>  1 </y>
      <z>  0 </z>
    </axis>
  </animation>

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

  <animation>
    <type>rotate</type>
    <object-name>RoueAvant</object-name>
    <property>/controls/flight/rudder</property>
    <factor>  10.0 </factor>
    <axis>
      <x1-m> -5.339 </x1-m>
      <y1-m>  0.000 </y1-m>
      <z1-m> -0.822 </z1-m>
      <x2-m> -5.536 </x2-m>
      <y2-m>  0.000 </y2-m>
      <z2-m> -1.800 </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> -5.627 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -2.182 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y> -1.000 </y>
      <z>  0.000 </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>  0.069 </x-m>
      <y-m> -1.085 </y-m>
      <z-m> -2.131 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y> -1.000 </y>
      <z>  0.000 </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>  0.069 </x-m>
      <y-m>  1.085 </y-m>
      <z-m> -2.131 </z-m>
    </center>
    <axis>
      <x>  0.000 </x>
      <y> -1.000 </y>
      <z>  0.000 </z>
    </axis>
  </animation>

</PropertyList>
