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

<PropertyList>

  <path>interior.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>interieur</object-name>
    <object-name>interieur2</object-name>
    <object-name>soute</object-name>
    <object-name>dos</object-name>
    <object-name>inttour</object-name>
    <object-name>intverriereA</object-name>
    <object-name>inttour2</object-name>
    <object-name>inttourfer</object-name>
    <object-name>inttoursous</object-name>
    <object-name>intbaieG1</object-name>
    <object-name>intbaieG2</object-name>
    <object-name>intbaieD1</object-name>
    <object-name>intbaieD2</object-name>

    <!-- Objets transparents -->
    <object-name>intverriere</object-name>
    <object-name>intvitreA</object-name>
    <object-name>inttourverre</object-name>
    <!-- HDR mode -->
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintvitreA</object-name>
    <object-name>HDRinttourverre</object-name>
  </animation>

  <!-- working for Compositor -->
  <effect>
    <inherits-from>../Effects/Glass/glassrain</inherits-from>
    <object-name>intverriere</object-name>
    <object-name>intvitreA</object-name>
    <object-name>inttourverre</object-name>
  </effect>

  <effect>
    <inherits-from>../Effects/Glass/glass</inherits-from>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintvitreA</object-name>
    <object-name>HDRinttourverre</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>
    </condition>
    <object-name>HDRintverriere</object-name>
    <object-name>HDRintvitreA</object-name>
    <object-name>HDRinttourverre</object-name>
  </animation>

  <animation>
    <type>select</type>
    <condition>
      <not><property>/sim/rendering/hdr/hdr-enabled</property></not>
    </condition>
    <object-name>intverriere</object-name>
    <object-name>intvitreA</object-name>
    <object-name>inttourverre</object-name>
  </animation>

  <model>
    <path>Panel/all-panels.xml</path>
  </model>

  <model>
    <path>../Pilot/all-pilots.xml</path>
  </model>

  <model>
    <path>seat/all-seats.xml</path>
  </model>

  <!-- Soute à bombes -->
  <animation>
    <name>IntBaieG</name>
    <object-name>intbaieG1</object-name>
    <object-name>intbaieG2</object-name>
  </animation>

  <animation>
    <name>IntBaieD</name>
    <object-name>intbaieD1</object-name>
    <object-name>intbaieD2</object-name>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntBaieG</object-name>
    <object-name>IntBaieD</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.passenger.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>IntBaieG</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> -70 </factor>
    <center>
      <x-m> -1.395 </x-m>
      <y-m> -0.605 </y-m>
      <z-m> -0.904 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intbaieG2</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> 85 </factor>
    <center>
      <x-m> -1.267 </x-m>
      <y-m> -0.354 </y-m>
      <z-m> -1.146 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>IntBaieD</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> 70 </factor>
    <center>
      <x-m> -1.395 </x-m>
      <y-m>  0.605 </y-m>
      <z-m> -0.904 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>intbaieD2</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> -85 </factor>
    <center>
      <x-m> -1.267 </x-m>
      <y-m>  0.354 </y-m>
      <z-m> -1.146 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Canopy -->
  <animation>
    <type>pick</type>
    <object-name>intverriereA</object-name>
    <object-name>intvitreA</object-name>
    <object-name>HDRintvitreA</object-name>
    <visible>true</visible>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>nasal</command>
        <script>doors.crew.toggle();</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>intverriereA</object-name>
    <object-name>intvitreA</object-name>
    <object-name>HDRintvitreA</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 0.00 </dep></entry>
      <entry><ind> 0.1 </ind><dep> 0.01 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 0.01 </dep></entry>
    </interpolation>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>translate</type>
    <object-name>intverriereA</object-name>
    <object-name>intvitreA</object-name>
    <object-name>HDRintvitreA</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <interpolation>
      <entry><ind> 0.0 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 0.1 </ind><dep> 0.0 </dep></entry>
      <entry><ind> 1.0 </ind><dep> 0.7 </dep></entry>
    </interpolation>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
