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

<PropertyList>

  <path>interior.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>interieur</object-name>
    <object-name>inttour</object-name>
    <object-name>planchet</object-name>
    <object-name>intporte</object-name>
    <object-name>cloison</object-name>
    <object-name>portecabineL</object-name>
    <object-name>portecabineR</object-name>
    <object-name>portenoze</object-name>

    <!-- Objets transparents -->
    <object-name>intvitres</object-name>
    <object-name>vitrecabineL</object-name>
    <object-name>vitrecabineR</object-name>
  </animation>

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

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

  <!-- working for Rembrandt -->
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <condition>
      <property>sim/rendering/rembrandt/enabled</property>
    </condition>
    <object-name>intvitres</object-name>
  </effect>

  <!-- Pilote -->
  <model>
    <path>Aircraft/Douglas-Dolphin/Models/Pilot/pilot.xml</path>
    <offsets>
      <x-m> -3.221 </x-m>
      <y-m> -0.535 </y-m>
      <z-m> -0.367 </z-m>
    </offsets>
  </model>

  <!-- Planche de bord -->
  <model>
    <path>Aircraft/Douglas-Dolphin/Models/Interior/Panel/panel.xml</path>
    <offsets>
      <x-m> -3.581 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.480 </z-m>
    </offsets>
  </model>

  <!-- Doors --> 
  <animation>
    <name>IntLaPorte</name>
    <object-name>intporte</object-name>
  </animation>
 
  <animation>
    <type>pick</type>
    <object-name>IntLaPorte</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>rotate</type>
    <object-name>IntLaPorte</object-name>
    <property>sim/model/door-positions/crew/position-norm</property>
    <factor> -180 </factor>
    <axis>
      <x1-m>  0.45848 </x1-m>
      <y1-m> -0.15342 </y1-m>
      <z1-m>  0.29261 </z1-m>
      <x2-m>  1.18506 </x2-m>
      <y2-m> -0.15342 </y2-m>
      <z2-m>  0.28652 </z2-m>
    </axis>
  </animation>

  <animation>
    <name>IntPorteCabineGauche</name>
    <object-name>portecabineL</object-name>
    <object-name>vitrecabineL</object-name>
  </animation>
 
  <animation>
    <name>IntPorteCabineDroite</name>
    <object-name>portecabineR</object-name>
    <object-name>vitrecabineR</object-name>
  </animation>
 
  <animation>
    <type>pick</type>
    <object-name>IntPorteCabineGauche</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>IntPorteCabineGauche</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> -150 </factor>
    <center>
      <x-m> -2.51142 </x-m>
      <y-m> -0.31925 </y-m>
      <z-m> -0.20832 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>IntPorteCabineDroite</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>IntPorteCabineDroite</object-name>
    <property>sim/model/door-positions/passenger/position-norm</property>
    <factor> 150 </factor>
    <center>
      <x-m> -2.51142 </x-m>
      <y-m>  0.31925 </y-m>
      <z-m> -0.20832 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 0 </y>
      <z> 1 </z>
    </axis>
  </animation>

</PropertyList>
