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

<PropertyList>

  <path>gear.ac</path>

  <animation>
    <object-name>fond</object-name>
    <object-name>GearLever</object-name>
    <object-name>GearLOn</object-name>
    <object-name>GearCOn</object-name>
    <object-name>GearROn</object-name>
    <object-name>GearLMove</object-name>
    <object-name>GearCMove</object-name>
    <object-name>GearRMove</object-name>
  </animation>

  <animation>
    <type>noshadow</type>
    <object-name>fond</object-name>
    <object-name>GearLOn</object-name>
    <object-name>GearCOn</object-name>
    <object-name>GearROn</object-name>
    <object-name>GearLMove</object-name>
    <object-name>GearCMove</object-name>
    <object-name>GearRMove</object-name>
  </animation>

  <animation>
    <type>material</type>
    <object-name>GearLOn</object-name>
    <object-name>GearCOn</object-name>
    <object-name>GearROn</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   0.5 </red>
      <green> 2.0 </green>
      <blue>  0.5 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <object-name>GearLMove</object-name>
    <object-name>GearCMove</object-name>
    <object-name>GearRMove</object-name>
    <condition>
      <property>controls/electric/battery-switch</property>
    </condition>
    <emission>
      <factor-prop>controls/lighting/instruments-norm</factor-prop>
      <red>   2.0 </red>
      <green> 2.0 </green>
      <blue>  0.5 </blue>
    </emission>
  </animation>

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

  <animation>
    <type>select</type>
    <object-name>GearCMove</object-name>
    <condition>
      <and>
        <greater-than>
          <property>gear/gear[0]/position-norm</property>
          <value>0</value>
        </greater-than>
        <less-than>
          <property>gear/gear[0]/position-norm</property>
          <value>1</value>
        </less-than>
      </and>
    </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>GearLMove</object-name>
    <condition>
      <and>
        <greater-than>
          <property>gear/gear[1]/position-norm</property>
          <value>0</value>
        </greater-than>
        <less-than>
          <property>gear/gear[1]/position-norm</property>
          <value>1</value>
        </less-than>
      </and>
    </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>

  <animation>
    <type>select</type>
    <object-name>GearRMove</object-name>
    <condition>
      <and>
        <greater-than>
          <property>gear/gear[2]/position-norm</property>
          <value>0</value>
        </greater-than>
        <less-than>
          <property>gear/gear[2]/position-norm</property>
          <value>1</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>pick</type>
    <object-name>GearLever</object-name>
    <action>
      <button>4</button>
      <binding>
        <command>nasal</command>
        <script>controls.gearDown(1)</script>
      </binding>
    </action>
    <action>
      <button>3</button>
      <binding>
        <command>nasal</command>
        <script>controls.gearDown(-1)</script>
      </binding>
    </action>
  </animation>

  <animation>
    <type>rotate</type>
    <object-name>GearLever</object-name>
    <property>controls/gear/gear-down</property>
    <factor> 45 </factor>
    <center>
      <x-m> -0.01586 </x-m>
      <y-m>  0.00000 </y-m>
      <z-m>  0.00370 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>

</PropertyList>
