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

<PropertyList>

  <path>engine.ac</path>

  <animation>
    <object-name>capot</object-name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>air</object-name>
    <object-name>inttrous</object-name>
    <object-name>echappes</object-name>

    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
  </animation>

  <effect>
    <inherits-from>../Effects/Bump/engine-bumpspec</inherits-from>
    <object-name>capot</object-name>
    <object-name>bol</object-name>
    <object-name>air</object-name>
  </effect>

  <!-- working for compositor -->
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <object-name>propblur</object-name>
    <object-name>propdisc</object-name>
  </effect>

  <animation>
    <name>HeliceComplete</name>
    <object-name>bol</object-name>
    <object-name>helice</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </animation>

  <model>
    <path>r2600/r2600.xml</path>
  </model>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdisc</object-name>
    <condition>
      <greater-than>
        <!-- <property>engines/engine[3]/rpm</property> -->
        <property>sim/multiplay/generic/float[7]</property>
        <value>1500</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblur</object-name>
    <condition>
      <and>
        <greater-than>
          <!-- <property>engines/engine[3]/rpm</property> -->
          <property>sim/multiplay/generic/float[7]</property>
          <value>600.000</value>
        </greater-than>
        <less-than>
          <!-- <property>engines/engine[3]/rpm</property> -->
          <property>sim/multiplay/generic/float[7]</property>
          <value>1500.001</value>
        </less-than>
      </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>helice</object-name>
    <condition>
      <less-than>
        <!-- <property>engines/engine[3]/rpm</property> -->
        <property>sim/multiplay/generic/float[7]</property>
        <value>1500</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
    <condition>
      <greater-than>
        <!-- <property>engines/engine[3]/rpm</property> -->
        <property>sim/multiplay/generic/float[7]</property>
        <value> 5 </value>
      </greater-than>
    </condition>
    <!-- <property>engines/engine[3]/rpm</property> -->
    <property>sim/multiplay/generic/float[7]</property>
    <factor> 1 </factor>
    <center>
      <x-m> -0.603 </x-m>
      <y-m>  0.000 </y-m>
      <z-m>  0.000 </z-m>
    </center>
    <axis>
      <x> 1 </x>
      <y> 0 </y>
      <z> 0 </z>
    </axis>
  </animation>

  <!-- Cranking -->
  <!-- Left -->
  <model>
    <path>../Effects/cranking/cranking3.xml</path>
    <offsets>
      <x-m>  0.558 </x-m>
      <y-m> -0.459 </y-m>
      <z-m> -0.756 </z-m>
    </offsets>
  </model>

  <!-- Right -->
  <model>
    <path>../Effects/cranking/cranking3.xml</path>
    <offsets>
      <x-m>  0.558 </x-m>
      <y-m>  0.459 </y-m>
      <z-m> -0.756 </z-m>
    </offsets>
  </model>

</PropertyList>
