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

<PropertyList>

  <path>astir.ac</path>

  <nasal>
    <load>
      var livery_update = aircraft.livery_update.new("Aircraft/Grob-Astir/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>
    <object-name>fuselage</object-name>
    <object-name>cache</object-name>
    <object-name>ailesL0</object-name>
    <object-name>ailesR0</object-name>
    <object-name>ailesL1</object-name>
    <object-name>ailesR1</object-name>
    <object-name>ailesL2</object-name>
    <object-name>ailesR2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>spoilerG</object-name>
    <object-name>spoilerD</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>profondeur</object-name>
    <object-name>tourverriere</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>

    <object-name>trous</object-name>
    <object-name>trousspoilerG</object-name>
    <object-name>trousspoilerD</object-name>
    <object-name>trousaileronG</object-name>
    <object-name>trousaileronD</object-name>
    <object-name>roueC</object-name>
    <object-name>roueA</object-name>

    <!-- Transparence -->
    <object-name>vitres</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>fuselage</object-name>
    <object-name>cache</object-name>
    <object-name>ailesL0</object-name>
    <object-name>ailesR0</object-name>
    <object-name>ailesL1</object-name>
    <object-name>ailesR1</object-name>
    <object-name>ailesL2</object-name>
    <object-name>ailesR2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>spoilerG</object-name>
    <object-name>spoilerD</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>profondeur</object-name>
    <object-name>tourverriere</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>

    <object-name>trous</object-name>
    <object-name>trousspoilerG</object-name>
    <object-name>trousspoilerD</object-name>
    <object-name>trousaileronG</object-name>
    <object-name>trousaileronD</object-name>
    <object-name>roueC</object-name>
    <object-name>roueA</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>
    <condition>
      <not><property>sim/rendering/rembrandt/enabled</property></not>
    </condition>
    <object-name>fuselage</object-name>
    <object-name>cache</object-name>
    <object-name>ailesL0</object-name>
    <object-name>ailesR0</object-name>
    <object-name>ailesL1</object-name>
    <object-name>ailesR1</object-name>
    <object-name>ailesL2</object-name>
    <object-name>ailesR2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>spoilerG</object-name>
    <object-name>spoilerD</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>profondeur</object-name>
    <object-name>tourverriere</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
  </effect>

  <effect>
    <inherits-from>Effects/model-combined-deferred</inherits-from>
    <condition>
      <property>sim/rendering/rembrandt/enabled</property>
    </condition>
    <object-name>fuselage</object-name>
    <object-name>cache</object-name>
    <object-name>ailesL0</object-name>
    <object-name>ailesR0</object-name>
    <object-name>ailesL1</object-name>
    <object-name>ailesR1</object-name>
    <object-name>ailesL2</object-name>
    <object-name>ailesR2</object-name>
    <object-name>aileronG</object-name>
    <object-name>aileronD</object-name>
    <object-name>spoilerG</object-name>
    <object-name>spoilerD</object-name>
    <object-name>ailes2</object-name>
    <object-name>direction</object-name>
    <object-name>profondeur</object-name>
    <object-name>tourverriere</object-name>
    <object-name>porteG</object-name>
    <object-name>porteD</object-name>
  </effect>
  
  <animation>
    <type>shader</type>
    <shader>chrome</shader>
    <texture>Aircraft/Generic/Effects/glass_shader.png</texture>
    <object-name>vitres</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>vitres</object-name>
  </animation>

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <condition>
      <property>sim/rendering/rembrandt/enabled</property>
    </condition>
    <object-name>vitres</object-name>
  </effect>
  
  <!-- Une ombre pour OSG -->
  <model>
    <path>Aircraft/Grob-Astir/Models/shadow.xml</path>
    <offsets>
      <x-m>  0.006376 </x-m>
      <y-m>  0.000000 </y-m>
      <z-m> -0.480000 </z-m>
    </offsets>
  </model>
  
  <!-- Intérieur -->
  <model>
    <name>Interieur</name>
    <path>Aircraft/Grob-Astir/Models/Interior/interior.xml</path>
  </model>

  <!-- For Rembrandt -->
  <animation>
    <type>noshadow</type>
    <object-name>Interieur</object-name>
  </animation>
  
  <!-- Immatriculation -->
  <model>
    <path>Aircraft/Grob-Astir/Models/Immat/immat.xml</path>
  </model>

  <!-- Flexions des ailes -->
  <!-- Left -->
  <animation>
    <type>rotate</type>
    <object-name>ailesL0</object-name>      
    <object-name>ailesL1</object-name>      
    <object-name>ailesL2</object-name>
    <object-name>trousspoilerG</object-name>
    <object-name>spoilerG</object-name>
    <object-name>trousaileronG</object-name>
    <object-name>aileronG</object-name>      
    <property>sim/multiplay/generic/float[3]</property>
    <interpolation>
      <entry><ind> 0.000 </ind><dep>  1 </dep></entry>
      <entry><ind> 0.333 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.000 </ind><dep> -1 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.27517 </x1-m>
      <y1-m> -0.28406 </y1-m>
      <z1-m> -0.14194 </z1-m>
      <x2-m> -0.26835 </x2-m>
      <y2-m> -0.17088 </y2-m>
      <z2-m> -0.17718 </z2-m>
    </axis>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>ailesL1</object-name>      
    <object-name>ailesL2</object-name>
    <object-name>trousspoilerG</object-name>
    <object-name>spoilerG</object-name>      
    <object-name>trousaileronG</object-name>
    <object-name>aileronG</object-name>      
    <property>sim/multiplay/generic/float[3]</property>
    <interpolation>
      <entry><ind> 0.000 </ind><dep>  1.5 </dep></entry>
      <entry><ind> 0.333 </ind><dep>  0.0 </dep></entry>
      <entry><ind> 1.000 </ind><dep> -1.5 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.22741 </x1-m>
      <y1-m> -2.05640 </y1-m>
      <z1-m> -0.07669 </z1-m>
      <x2-m> -0.30070 </x2-m>
      <y2-m> -2.05640 </y2-m>
      <z2-m> -0.09514 </z2-m>
    </axis>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>ailesL2</object-name>      
    <object-name>trousaileronG</object-name>
    <object-name>aileronG</object-name>      
    <property>sim/multiplay/generic/float[3]</property>
    <interpolation>
      <entry><ind> 0.000 </ind><dep>  2 </dep></entry>
      <entry><ind> 0.333 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.000 </ind><dep> -2 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.17122 </x1-m>
      <y1-m> -4.41838 </y1-m>
      <z1-m>  0.02317 </z1-m>
      <x2-m> -0.34123 </x2-m>
      <y2-m> -4.41896 </y2-m>
      <z2-m>  0.00765 </z2-m>
    </axis>
  </animation>
 
 <!-- Right -->
  <animation>
    <type>rotate</type>
    <object-name>ailesR0</object-name>      
    <object-name>ailesR1</object-name>      
    <object-name>ailesR2</object-name>      
    <object-name>trousspoilerD</object-name>
    <object-name>spoilerD</object-name>      
    <object-name>trousaileronD</object-name>
    <object-name>aileronD</object-name>      
    <property>sim/multiplay/generic/float[3]</property>
    <interpolation>
      <entry><ind> 0.000 </ind><dep>  1 </dep></entry>
      <entry><ind> 0.333 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.000 </ind><dep> -1 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.26835 </x1-m>
      <y1-m>  0.17088 </y1-m>
      <z1-m> -0.17718 </z1-m>
      <x2-m> -1.27517 </x2-m>
      <y2-m>  0.28406 </y2-m>
      <z2-m> -0.14194 </z2-m>
    </axis>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>ailesR1</object-name>      
    <object-name>ailesR2</object-name>      
    <object-name>trousspoilerD</object-name>
    <object-name>spoilerD</object-name>      
    <object-name>trousaileronD</object-name>
    <object-name>aileronD</object-name>      
    <property>sim/multiplay/generic/float[3]</property>
    <interpolation>
      <entry><ind> 0.000 </ind><dep>  1.5 </dep></entry>
      <entry><ind> 0.333 </ind><dep>  0.0 </dep></entry>
      <entry><ind> 1.000 </ind><dep> -1.5 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.30070 </x1-m>
      <y1-m>  2.05640 </y1-m>
      <z1-m> -0.09514 </z1-m>
      <x2-m> -1.22741 </x2-m>
      <y2-m>  2.05640 </y2-m>
      <z2-m> -0.07669 </z2-m>
    </axis>
  </animation>
 
  <animation>
    <type>rotate</type>
    <object-name>ailesR2</object-name>      
    <object-name>trousaileronD</object-name>
    <object-name>aileronD</object-name>      
    <property>sim/multiplay/generic/float[3]</property>
    <interpolation>
      <entry><ind> 0.000 </ind><dep>  2 </dep></entry>
      <entry><ind> 0.333 </ind><dep>  0 </dep></entry>
      <entry><ind> 1.000 </ind><dep> -2 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -0.34123 </x1-m>
      <y1-m>  4.41896 </y1-m>
      <z1-m>  0.00765 </z1-m>
      <x2-m> -1.17122 </x2-m>
      <y2-m>  4.41838 </y2-m>
      <z2-m>  0.02317 </z2-m>
    </axis>
  </animation>
 
 <!-- Ailerons -->
  <animation>
    <type>rotate</type>
    <object-name>aileronG</object-name>      
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 10 </factor>
    <axis>
      <x1-m> -0.769 </x1-m>
      <y1-m> -7.315 </y1-m>
      <z1-m>  0.142 </z1-m>
      <x2-m> -0.607 </x2-m>
      <y2-m> -4.419 </y2-m>
      <z2-m>  0.018 </z2-m>
    </axis>
  </animation>
  
  <animation>
    <type>rotate</type>
    <object-name>aileronD</object-name>      
    <property>surface-positions/right-aileron-pos-norm</property>
    <factor> 10 </factor>
    <axis>
      <x1-m> -0.607 </x1-m>
      <y1-m>  4.419 </y1-m>
      <z1-m>  0.018 </z1-m>
      <x2-m> -0.769 </x2-m>
      <y2-m>  7.315 </y2-m>
      <z2-m>  0.142 </z2-m>
    </axis>
  </animation>
 
  <!-- Aérofreins -->
  <animation>
    <type>translate</type>
    <object-name>spoilerG</object-name>
    <property>surface-positions/speedbrake-pos-norm</property>
    <factor> 0.05 </factor>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>spoilerD</object-name>
    <property>surface-positions/speedbrake-pos-norm</property>
    <factor> 0.05 </factor>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <!-- Profondeur -->
  <animation>
    <type>rotate</type>
    <object-name>profondeur</object-name>      
    <property>surface-positions/elevator-pos-norm</property>
    <factor> 24 </factor>  
    <center>
      <x-m> 3.035 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.587 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>  

  <!-- Direction -->
  <animation>
    <type>rotate</type>
    <object-name>direction</object-name>      
    <property>surface-positions/rudder-pos-norm</property>
    <factor> 24 </factor>
    <axis>
      <x1-m>  3.037 </x1-m>
      <y1-m>  0.000 </y1-m>
      <z1-m> -0.282 </z1-m>
      <x2-m>  3.192 </x2-m>
      <y2-m>  0.000 </y2-m>
      <z2-m>  0.585 </z2-m>
    </axis>
  </animation>
 
  <!-- Porte de la roue -->
  <animation>
    <type>rotate</type>
    <object-name>porteG</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>   0 </dep></entry>
      <entry><ind> 0.2 </ind><dep> -85 </dep></entry>
      <entry><ind> 1.0 </ind><dep> -85 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.362 </x1-m>
      <y1-m> -0.058 </y1-m>
      <z1-m> -0.503 </z1-m>
      <x2-m> -1.022 </x2-m>
      <y2-m> -0.052 </y2-m>
      <z2-m> -0.463 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>porteD</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep>  0 </dep></entry>
      <entry><ind> 0.2 </ind><dep> 85 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 85 </dep></entry>
    </interpolation>
    <axis>
      <x1-m> -1.362 </x1-m>
      <y1-m>  0.058 </y1-m>
      <z1-m> -0.503 </z1-m>
      <x2-m> -1.022 </x2-m>
      <y2-m>  0.052 </y2-m>
      <z2-m> -0.463 </z2-m>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>roueC</object-name>
    <property>gear/gear[0]/position-norm</property>
    <interpolation>
      <entry><ind> 0 </ind><dep> 0.151 </dep></entry>
      <entry><ind> 1 </ind><dep> 0.000 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

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

  <animation>
    <type>spin</type>
    <object-name>roueA</object-name>
    <property>gear/gear[1]/rollspeed-ms</property>
    <factor> 30 </factor>
    <center>
      <x-m>  2.870 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.323 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <name>TotaleVitre</name>
    <object-name>vitres</object-name>
    <object-name>tourverriere</object-name>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>TotaleVitre</object-name>
    <property>instrumentation/doors/crew/position-norm</property>
    <factor> -85 </factor>
    <axis>
      <x1-m> -2.188 </x1-m>
      <y1-m>  0.286 </y1-m>
      <z1-m> -0.235 </z1-m>
      <x2-m> -1.558 </x2-m>
      <y2-m>  0.305 </y2-m>
      <z2-m> -0.209 </z2-m>
    </axis>
  </animation>

</PropertyList>
