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

<PropertyList>

  <path>gear.ac</path>

  <animation>
    <!-- Objets opaques -->
    <object-name>base</object-name>
    <object-name>gear</object-name>
    <object-name>gearAON</object-name>
    <object-name>gearLON</object-name>
    <object-name>gearRON</object-name>
    <object-name>gearAOFF</object-name>
    <object-name>gearLOFF</object-name>
    <object-name>gearROFF</object-name>

    <!-- Objets transparents -->
  </animation>

  <animation>
    <type>material</type>
    <object-name>gearAON</object-name>
    <object-name>gearLON</object-name>
    <object-name>gearRON</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <red>   2 </red>
      <green> 2 </green>
      <blue>  2 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>gearAOFF</object-name>
    <object-name>gearLOFF</object-name>
    <object-name>gearROFF</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <red>   0.1 </red>
      <green> 0.1 </green>
      <blue>  0.1 </blue>
    </emission>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>gear</object-name>
    <action>
      <button>0</button>
      <repeatable>false</repeatable>
      <binding>
        <command>property-toggle</command>
        <property>/controls/gear/gear-down</property>
      </binding>
    </action>
  </animation>

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

  <!-- Lampe verte allumée si train sortie -->
  <animation>
    <type>select</type>
    <object-name>gearAON</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gearLON</object-name>
    <condition>
      <equals>
        <property>gear/gear[1]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gearRON</object-name>
    <condition>
      <equals>
        <property>gear/gear[2]/position-norm</property>
        <value> 1 </value>
      </equals>
    </condition>
  </animation>

  <!-- Lampe verte éteinte si train rentré -->
  <animation>
    <type>select</type>
    <object-name>gearAOFF</object-name>
    <condition>
      <equals>
        <property>gear/gear[0]/position-norm</property>
        <value> 0 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gearLOFF</object-name>
    <condition>
      <equals>
        <property>gear/gear[1]/position-norm</property>
        <value> 0 </value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>gearROFF</object-name>
    <condition>
      <equals>
        <property>gear/gear[2]/position-norm</property>
        <value> 0 </value>
      </equals>
    </condition>
  </animation>

</PropertyList>
