<?xml version="1.0"?>
<!--
  Submarine Scout class airship.

  Copyright (C) 2007 - 2012  Anders Gidenstam  (anders(at)gidenstam.org)
  This file is licensed under the GPL license version 2 or later.
-->
<PropertyList>

 <parameters>
  <engine-rpm>engines/engine[0]/rpm</engine-rpm>
 </parameters>

 <!--
  The propeller. Models and animations based on the Vickers Vimy
  by Emmanuel BARANGER.
 -->
 <path>propeller.ac</path>

 <!-- Rembrandt transparency markup. -->
 <effect>
  <inherits-from>Effects/model-transparent</inherits-from>
  <object-name>PropBlur</object-name>
  <object-name>PropDisc</object-name>
 </effect>

 <!-- Propeller -->
 <animation>
  <type>select</type>
  <object-name>PropDisc</object-name>
  <condition>
   <greater-than>
    <property alias="../../../../parameters/engine-rpm"/>
    <value>1000</value>
   </greater-than>
  </condition>
 </animation>
 <animation>
  <type>select</type>
  <object-name>PropBlur</object-name>
  <condition>
   <and>
    <greater-than>
     <property alias="../../../../../parameters/engine-rpm"/>
     <value>400.000</value>
    </greater-than>
    <less-than>
     <property alias="../../../../../parameters/engine-rpm"/>
     <value>1000.001</value>
    </less-than>
   </and>
  </condition>
 </animation>

 <animation>
  <type>spin</type>
  <object-name>Propeller</object-name>
  <property alias="../../parameters/engine-rpm"/>
  <factor>1</factor>
  <center>
   <x-m> 0.0 </x-m>
   <y-m> 0.0 </y-m>
   <z-m> 0.0 </z-m>
  </center>
  <axis>
   <x> 1.0 </x>
   <y> 0.0 </y>
   <z> 0.0 </z>
  </axis>
 </animation>
 <animation>
  <type>spin</type>
  <object-name>PropBlur</object-name>
  <property alias="../../parameters/engine-rpm"/>
  <factor>-0.001</factor>
  <center>
   <x-m> 0.0 </x-m>
   <y-m> 0.0 </y-m>
   <z-m> 0.0 </z-m>
  </center>
  <axis>
   <x> 1.0 </x>
   <y> 0.0 </y>
   <z> 0.0 </z>
  </axis>
 </animation>

</PropertyList>
