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

<PropertyList>

  <path>p39.ac</path>

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/Bell-P-39/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>porteA</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>bol</object-name>
    <object-name>ailes</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>caches</object-name>
    <object-name>antennes</object-name>

    <object-name>trous</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>echappes</object-name>
    <object-name>helice</object-name>
    <object-name>guns</object-name>

    <!-- Objets transparents -->
    <object-name>vitres</object-name>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>cables</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>porteA</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>bol</object-name>
    <object-name>ailes</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>caches</object-name>
    <object-name>antennes</object-name>

    <object-name>trous</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>echappes</object-name>
    <object-name>helice</object-name>
    <object-name>guns</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>

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

  <effect>
    <inherits-from>Aircraft/Generic/Effects/Fuselagereflect</inherits-from>
    <object-name>fuselage</object-name>
    <object-name>porteA</object-name>
    <object-name>porteAG</object-name>
    <object-name>porteAD</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
    <object-name>bol</object-name>
    <object-name>ailes</object-name>
    <object-name>porteG1</object-name>
    <object-name>porteG2</object-name>
    <object-name>porteD1</object-name>
    <object-name>porteD2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>voletG</object-name>
    <object-name>voletD</object-name>
    <object-name>ailes2</object-name>
    <object-name>profondeur</object-name>
    <object-name>direction</object-name>
    <object-name>caches</object-name>
    <object-name>antennes</object-name>
  </effect>

  <animation>
    <type>shader</type>
    <shader>chrome</shader>
    <texture>Aircraft/Generic/Effects/glass_shader.png</texture>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>vitres</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>vitreporteG</object-name>
    <object-name>vitreporteD</object-name>
    <object-name>vitres</object-name>
    <object-name>cables</object-name>
  </animation>

  <!-- Une ombre pour OSG -->
  <model>
    <path>Aircraft/Bell-P-39/Models/shadow.xml</path>
    <offsets>
      <x-m> -0.024 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.568 </z-m>
    </offsets>
  </model>

  <!-- Intérieur -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Interior/interior.xml</path>
  </model>

  <!-- Effets de tir -->
  <!-- Dessus gauche -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -3.702 </x-m>
      <y-m> -0.199 </y-m>
      <z-m>  0.512 </z-m>
      <pitch-deg> 180 </pitch-deg>
    </offsets>
  </model>

  <!-- Gauche -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -1.957 </x-m>
      <y-m> -3.052 </y-m>
      <z-m> -0.469 </z-m>
      <pitch-deg> 180 </pitch-deg>
    </offsets>
  </model>

  <!-- Dessus droite -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -3.702 </x-m>
      <y-m>  0.199 </y-m>
      <z-m>  0.512 </z-m>
      <pitch-deg> 180 </pitch-deg>
    </offsets>
  </model>

  <!-- Droite -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -1.957 </x-m>
      <y-m>  3.052 </y-m>
      <z-m> -0.469 </z-m>
      <pitch-deg> 180 </pitch-deg>
    </offsets>
  </model>

  <!-- Canon -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/guns/fire.xml</path>
    <offsets>
      <x-m> -4.614 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.169 </z-m>
      <pitch-deg> 180 </pitch-deg>
    </offsets>
  </model>

  <!-- Effets sur le sol -->
  <!-- Roue avant -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/ground/ground0.xml</path>
    <offsets>
      <x-m> -3.611 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.920 </z-m>
    </offsets>
  </model>

  <!-- Roue gauche -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/ground/ground1.xml</path>
    <offsets>
      <x-m> -0.515 </x-m>
      <y-m> -1.811 </y-m>
      <z-m> -1.716 </z-m>
    </offsets>
  </model>

  <!-- Roue droite -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/ground/ground2.xml</path>
    <offsets>
      <x-m> -0.515 </x-m>
      <y-m>  1.811 </y-m>
      <z-m> -1.716 </z-m>
    </offsets>
  </model>

  <!-- Cranking effects -->
  <!-- Left -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.722 </x-m>
      <y-m> -0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> -30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.545 </x-m>
      <y-m> -0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> -30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.368 </x-m>
      <y-m> -0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> -30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.191 </x-m>
      <y-m> -0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> -30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.014 </x-m>
      <y-m> -0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> -30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m>  0.163 </x-m>
      <y-m> -0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> -30 </heading-deg>
    </offsets>
  </model>

  <!-- Right -->
  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.722 </x-m>
      <y-m>  0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> 30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.545 </x-m>
      <y-m>  0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> 30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.368 </x-m>
      <y-m>  0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> 30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.191 </x-m>
      <y-m>  0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> 30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> -0.014 </x-m>
      <y-m>  0.463 </y-m>
      <z-m>  0.248 </z-m>
      <heading-deg> 30 </heading-deg>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/Effects/cranking/cranking.xml</path>
    <offsets>
      <x-m> 0.163 </x-m>
      <y-m> 0.463 </y-m>
      <z-m> 0.248 </z-m>
      <heading-deg> 30 </heading-deg>
    </offsets>
  </model>

  <!-- L'hélice --> 
  <animation>
    <name>HeliceComplete</name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>propblur</object-name>
    <condition>
    <and>
      <greater-than>
        <property>engines/engine[0]/rpm</property>
        <value>400.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>helice</object-name>
    <condition>
      <less-than>
        <property>engines/engine[0]/rpm</property>
	<value>1100</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <property>engines/engine[0]/rpm</property>
    <factor> 1 </factor>
    <center>
      <x-m> -4.161 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.169 </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> -0.336 </x1-m>
      <y1-m> -4.478 </y1-m>
      <z1-m> -0.103 </z1-m>
      <x2-m> -0.047 </x2-m>
      <y2-m> -2.944 </y2-m>
      <z2-m> -0.286 </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.047 </x1-m>
      <y1-m>  2.944 </y1-m>
      <z1-m> -0.286 </z1-m>
      <x2-m> -0.336 </x2-m>
      <y2-m>  4.478 </y2-m>
      <z2-m> -0.103 </z2-m>
    </axis>
  </animation>

  <!-- Volets -->
  <animation>
    <type>rotate</type>
    <object-name>voletG</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 50 </factor>
    <axis>
      <x1-m> -0.200 </x1-m>
      <y1-m> -2.911 </y1-m>
      <z1-m> -0.335 </z1-m>
      <x2-m> -0.015 </x2-m>
      <y2-m> -1.045 </y2-m>
      <z2-m> -0.576 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>voletD</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 50 </factor>
    <axis>
      <x1-m> -0.015 </x1-m>
      <y1-m>  1.045 </y1-m>
      <z1-m> -0.576 </z1-m>
      <x2-m> -0.200 </x2-m>
      <y2-m>  2.911 </y2-m>
      <z2-m> -0.335 </z2-m>
    </axis>
  </animation>

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

  <!-- Gouverne de direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 20 </factor>
    <center>
      <x-m> 3.912 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 1.063 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </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> 85 </dep></entry>
    </interpolation>
    <center>
      <x-m> -3.652 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.312 </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[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.2 </ind><dep> -95 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -3.018 </x1-m>
      <y1-m> -0.129 </y1-m>
      <z1-m> -0.454 </z1-m>
      <x2-m> -2.313 </x2-m>
      <y2-m> -0.129 </y2-m>
      <z2-m> -0.577 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteAD</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.2 </ind><dep> -95 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -2.313 </x1-m>
      <y1-m>  0.129 </y1-m>
      <z1-m> -0.577 </z1-m>
      <x2-m> -3.018 </x2-m>
      <y2-m>  0.129 </y2-m>
      <z2-m> -0.454 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteG1</object-name>
    <property>gear/gear[1]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>   0 </dep></entry>
      <entry><ind> 1 </ind><dep> -85 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.710 </x-m>
      <y-m> -1.844 </y-m>
      <z-m> -0.450 </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.1 </ind><dep> 95 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 95 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.790 </x1-m>
      <y1-m> -0.522 </y1-m>
      <z1-m> -0.691 </z1-m>
      <x2-m> -0.239 </x2-m>
      <y2-m> -0.522 </y2-m>
      <z2-m> -0.667 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD1</object-name>
    <property>gear/gear[2]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep>  0 </dep></entry>
      <entry><ind> 1 </ind><dep> 85 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.710 </x-m>
      <y-m>  1.844 </y-m>
      <z-m> -0.450 </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[1]/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> -0.239 </x1-m>
      <y1-m>  0.522 </y1-m>
      <z1-m> -0.667 </z1-m>
      <x2-m> -0.790 </x2-m>
      <y2-m>  0.522 </y2-m>
      <z2-m> -0.691 </z2-m>
    </axis>
  </animation>

  <!-- Rentré des roues -->
  <animation>
    <name>TrainAvant</name>
    <object-name>roueA</object-name>
    <object-name>axeAH</object-name>
    <object-name>axeAB</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> -3.538 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.166 </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>axeGH</object-name>
    <object-name>axeGB</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> 85 </dep></entry>
      <entry><ind> 1 </ind><dep>  0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.710 </x-m>
      <y-m> -1.814 </y-m>
      <z-m> -0.450 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <name>TrainDroit</name>
    <object-name>roueD</object-name>
    <object-name>axeDH</object-name>
    <object-name>axeDB</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> -86 </dep></entry>
      <entry><ind> 1 </ind><dep>   0 </dep></entry>
    </interpolation>
    <center>
      <x-m> -0.710 </x-m>
      <y-m>  1.814 </y-m>
      <z-m> -0.450 </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>surface-positions/rudder-pos-norm</property>
    <factor> -25 </factor>
    <axis>
      <x1-m> -3.580 </x1-m>
      <y1-m>  0.000 </y1-m>
      <z1-m> -1.026 </z1-m>
      <x2-m> -3.538 </x2-m>
      <y2-m>  0.000 </y2-m>
      <z2-m> -0.166 </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> -3.611 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -1.688 </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> -0.515 </x-m>
      <y-m> -1.811 </y-m>
      <z-m> -1.372 </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> -0.515 </x-m>
      <y-m>  1.811 </y-m>
      <z-m> -1.372 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Les portes -->
  <animation>
    <name>PorteGauche</name>
    <object-name>vitreporteG</object-name>
    <object-name>porteG</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>PorteGauche</object-name>
    <property>instrumentation/doors/crew/position-norm</property>
    <factor> -65 </factor>
    <axis>
      <x1-m> -1.742 </x1-m>
      <y1-m> -0.442 </y1-m>
      <z1-m>  0.317 </z1-m>
      <x2-m> -1.730 </x2-m>
      <y2-m> -0.416 </y2-m>
      <z2-m>  0.474 </z2-m>
    </axis>
  </animation>

  <animation>
    <name>PorteDroite</name>
    <object-name>vitreporteD</object-name>
    <object-name>porteD</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>PorteDroite</object-name>
    <property>instrumentation/doors/passenger/position-norm</property>
    <factor> -65 </factor>
    <axis>
      <x1-m> -1.730 </x1-m>
      <y1-m>  0.416 </y1-m>
      <z1-m>  0.474 </z1-m>
      <x2-m> -1.742 </x2-m>
      <y2-m>  0.442 </y2-m>
      <z2-m>  0.317 </z2-m>
    </axis>
  </animation>

  <!-- Ajout des effets lumineux -->
  <model>
    <path>Aircraft/Bell-P-39/Models/light/beacon.xml</path>
    <offsets>
      <x-m> 3.716 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 1.737 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/light/beacon.xml</path>
    <offsets>
      <x-m> -1.141 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.766 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/light/RedLight.xml</path>
    <offsets>
      <x-m> -1.043 </x-m>
      <y-m> -5.188 </y-m>
      <z-m> -0.002 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/light/GreenLight.xml</path>
    <offsets>
      <x-m> -1.043 </x-m>
      <y-m>  5.188 </y-m>
      <z-m> -0.002 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/light/StrobeWhite.xml</path>
    <offsets>
      <x-m> -1.033 </x-m>
      <y-m> -5.188 </y-m>
      <z-m> -0.002 </z-m>
    </offsets>
  </model>

  <model>
    <path>Aircraft/Bell-P-39/Models/light/StrobeWhite.xml</path>
    <offsets>
      <x-m> -1.033 </x-m>
      <y-m>  5.188 </y-m>
      <z-m> -0.002 </z-m>
    </offsets>
  </model>

</PropertyList>

