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

<PropertyList>

  <path>arup-s2.ac</path>

  <offsets>
	<pitch-deg>11.8</pitch-deg>
    <z-m>1.14</z-m>   
  </offsets>

  <animation>
	  <type>rotate</type>
	  <property>velocities/true-airspeed-kt</property>
	  <interpolation>
		<entry><ind>0</ind><dep>0.0</dep></entry>
		<entry><ind>20</ind><dep>0.0</dep></entry>
		<entry><ind>30</ind><dep>11.8</dep></entry>
		<entry><ind>60</ind><dep>11.8</dep></entry>
	  </interpolation>
	  <center>
	   <x-m>0.0</x-m>
	   <y-m>0.0</y-m>
	   <z-m>-15</z-m>
	  </center>
	  <axis>
	   <x>0.0</x>
	   <y>-.5</y>
	   <z>0.0</z>
	  </axis>
  </animation>
 
  <animation>
    <type>shader</type>
    <shader>chrome</shader>
    <texture>Aircraft/Generic/Effects/glass_shader.png</texture>
    <object-name>vitres</object-name>
  </animation>

  <!-- L'hélice -->
  <animation>
    <name>HeliceComplete</name>
    <object-name>helice</object-name>
    <object-name>bol</object-name>
    <object-name>propdisc</object-name>
    <object-name>propblur</object-name>
  </animation>

  <!-- Séléction de l'objet visible en fonction des rpm -->
  <animation>
    <type>select</type>
    <object-name>propdisc</object-name>
    <condition>
      <greater-than>
        <property>velocities/true-airspeed-kt</property>
        <value>0</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>propblur</object-name>
    <condition>
    <and>
      <greater-than>
        <property>velocities/true-airspeed-kt</property>
        <value>40</value>
      </greater-than>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
        <value>101</value>
      </less-than>
    </and>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>helice</object-name>
    <condition>
      <less-than>
        <property>velocities/true-airspeed-kt</property>
		<value>101</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>HeliceComplete</object-name>
   <property>velocities/true-airspeed-kt</property>
    <factor> 1 </factor>
    <center>
      <x-m> -2.237 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.160 </z-m>
    </center>
    <axis>
      <x> -1 </x>
      <y>  0 </y>
      <z>  0 </z>
    </axis>
  </animation>


  <!-- Rotation des roues lors du roulage -->
  <animation>
    <type>spin</type>
    <object-name>roueG</object-name>
    <condition>
		<less-than>
			<property>velocities/true-airspeed-kt</property>
			<value>71</value>
		</less-than>
	</condition>
    <factor> 30 </factor>
    <center>
      <x-m> -0.933 </x-m>
      <y-m> -0.777 </y-m>
      <z-m> -1.103 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <animation>
    <type>spin</type>
    <object-name>roueD</object-name>
    <condition>
		<less-than>
			<property>velocities/true-airspeed-kt</property>
			<value>71</value>
		</less-than>
	</condition>
    <factor> 30 </factor>
    <center>
      <x-m> -0.933 </x-m>
      <y-m>  0.777 </y-m>
      <z-m> -1.103 </z-m>
    </center>
    <axis>
      <x>  0 </x>
      <y> -1 </y>
      <z>  0 </z>
    </axis>
  </animation>

  <!-- Ajout des effets lumineux -->
  <model>
	<name>beacon</name>
    <path>lights/beacon.xml</path>
    <offsets>
      <x-m> 1.489 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.955 </z-m>
    </offsets>
  </model>
  
  <model>
	<name>flash</name>
    <path>lights/flash.xml</path>
    <offsets>
      <x-m> 1.489 </x-m>
      <y-m> 0.000 </y-m>
      <z-m> 0.955 </z-m>
    </offsets>
  </model>
  
 <animation>
  <name>timed_beacon</name>
  <type>timed</type>
  <object-name>beacon</object-name>
  <object-name>flash</object-name>
  <use-personality type="bool">true</use-personality>
	  <branch-duration-sec>0.1</branch-duration-sec>
	  <branch-duration-sec>1.0</branch-duration-sec>
 </animation>
 
  <animation>
    <type>select</type>
    <object-name>timed_beacon</object-name>
    <condition>
      <and>
		<greater-than>
			<property>/sim/time/sun-angle-rad</property>
			<value>1.57</value>
		</greater-than>
		<greater-than>
			<property>velocities/true-airspeed-kt</property>
			<value>0</value>
		</greater-than>
	  </and>
    </condition>
  </animation>
  
   <model>
	<name>StrobeWhite1</name>
    <path>lights/StrobeWhite.xml</path>
    <offsets>
      <x-m> -0.935 </x-m>
      <y-m> -3.493 </y-m>
      <z-m> -0.140 </z-m>
    </offsets>
  </model>

  <model>
	<name>StrobeWhite2</name>
    <path>lights/StrobeWhite.xml</path>
    <offsets>
      <x-m> -0.935 </x-m>
      <y-m>  3.493 </y-m>
      <z-m> -0.140 </z-m>
    </offsets>
  </model>
  
   <model>
	<name>flash1</name>
    <path>lights/flash.xml</path>
    <offsets>
      <x-m> -0.935 </x-m>
      <y-m> -3.493 </y-m>
      <z-m> -0.140 </z-m>
    </offsets>
  </model>
  
  <model>
	<name>flash2</name>
    <path>lights/flash.xml</path>
    <offsets>
      <x-m> -0.935 </x-m>
      <y-m>  3.493 </y-m>
      <z-m> -0.140 </z-m>
    </offsets>
  </model>
  
  <animation>
    <name>StrobeLights</name>
    <object-name>StrobeWhite1</object-name>
    <object-name>StrobeWhite2</object-name>
  </animation>
  
  <animation>
    <name>StrobeFlash</name>
    <object-name>flash1</object-name>
    <object-name>flash2</object-name>
  </animation>
 
  <animation>
	  <name>timed_strobes</name>
	  <type>timed</type>
	  <object-name>StrobeLights</object-name>
	  <object-name>StrobeFlash</object-name>
	  <use-personality type="bool">true</use-personality>
		  <branch-duration-sec>0.1</branch-duration-sec>
		  <branch-duration-sec>1.0</branch-duration-sec>
  </animation>
 
  <animation>
    <type>select</type>
    <object-name>timed_strobes</object-name>
    <condition>
      <and>
		<greater-than>
			<property>/sim/time/sun-angle-rad</property>
			<value>1.57</value>
		</greater-than>
		<greater-than>
			<property>velocities/true-airspeed-kt</property>
			<value>0</value>
		</greater-than>
	  </and>
    </condition>
  </animation>

  <model>
	<name>RedLight</name>
    <path>lights/RedLight.xml</path>
    <offsets>
      <x-m> -0.940 </x-m>
      <y-m> -3.493 </y-m>
      <z-m> -0.140 </z-m>
    </offsets>
  </model>

  <model>
	<name>GreenLight</name>
    <path>lights/GreenLight.xml</path>
    <offsets>
      <x-m> -0.940 </x-m>
      <y-m>  3.493 </y-m>
      <z-m> -0.140</z-m>
    </offsets>
  </model>
  
  <animation>
    <name>Colors</name>
    <object-name>RedLight</object-name>
    <object-name>GreenLight</object-name>
  </animation>
  
  <animation>
    <type>select</type>
    <object-name>Colors</object-name>
    <condition>
      <and>
		<greater-than>
			<property>/sim/time/sun-angle-rad</property>
			<value>1.57</value>
		</greater-than>
		<greater-than>
			<property>velocities/true-airspeed-kt</property>
			<value>0</value>
		</greater-than>
	  </and>
    </condition>
  </animation>

  
  <!-- Volets 
  <animation>
    <type>rotate</type>
    <object-name>volet</object-name>
    <property>surface-positions/flap-pos-norm</property>
    <factor> 20 </factor>
    <center>
      <x-m>  1.402 </x-m>
      <y-m>  0.000 </y-m>
      <z-m> -0.305 </z-m>
    </center>
    <axis>
      <x> 0 </x>
      <y> 1 </y>
      <z> 0 </z>
    </axis>
  </animation>
-->

</PropertyList>