<?xml version="1.0"?>

<PropertyList>

	<path>PC-9M.ac</path>
	<offsets>
		<pitch-deg>-4.70</pitch-deg>   
		<heading-deg>0</heading-deg>
		<roll-deg>0</roll-deg>
		<x-m>0</x-m>
		<y-m>0</y-m>
		<z-m>-0.13</z-m>
	</offsets>
	
	<model>
		<usage>interior</usage>
		<path>Aircraft/PC-9M/Models/Cockpit.xml</path>
	</model>
	
    <!-- Rembrandt auto switching for glass -->
	
    <effect>
        <inherits-from>Effects/model-transparent</inherits-from>
        <condition>
            <greater-than>
                <property>sim/multiplay/generic/float[6]</property>
                <value>9</value>
            </greater-than>
            <property>/sim/rendering/rembrandt/enabled</property>
       	 </condition>
		<object-name>canopy</object-name>
		<object-name>prop</object-name>
		<object-name>pdisk</object-name>
    </effect>
	
	<!-- Lights -->
	
	<model>
		<path>Aircraft/PC-9M/Models/Lights.xml</path>
	</model>
	
	<!-- Effects -->

	<model>
		<path>Aircraft/PC-9M/Models/Effects.xml</path>
	</model>
	
	<!-- Glass shader -->
    
    <animation>
        <type>shader</type>
        <shader>chrome</shader>
        <texture>Aircraft/Generic/Effects/glass_shader.png</texture>
        <object-name>canopy</object-name>
    </animation>
	
	<animation>
		<type>noshadow</type>
        <object-name>canopy</object-name>
	</animation>
	
    <!-- Parts invisible from internally -->
    
    <animation>
        <type>select</type>
        <object-name>canopy</object-name>
		<condition>
            <not>
                <property>sim/current-view/internal</property>
            </not>
        </condition>
    </animation>
	
	<!-- MP sound -->
	
	<sound>
		<path>Aircraft/PC-9M/Sounds/MP-Sound.xml</path>
	</sound>

	<!-- Livery -->

	<nasal>
		<load>
			var livery_update = aircraft.livery_update.new("Aircraft/PC-9M/Models/Liveries");
		</load>
		<unload>
			livery_update.stop();
		</unload>
	</nasal>

	<animation>
		<type>material</type>
		<object-name>spinner</object-name>
		<object-name>hull</object-name>
		<object-name>arch</object-name>
		<object-name>rudder</object-name>
		<object-name>hstab</object-name>
		<object-name>elevator</object-name>
		<object-name>wing</object-name>
		<object-name>airbrake</object-name>
		<object-name>riflap</object-name>
		<object-name>liflap</object-name>
		<object-name>roflap</object-name>
		<object-name>loflap</object-name>
		<object-name>raileron</object-name>
		<object-name>laileron</object-name>
		<object-name>frdoor</object-name>
		<object-name>fldoor</object-name>
		<object-name>rbodoor</object-name>
		<object-name>rbdoor</object-name>
		<object-name>lbodoor</object-name>
		<object-name>lbdoor</object-name>
		<property-base>sim/model/livery</property-base>
		<texture-prop>texture</texture-prop>
		<texture>Aircraft/PC-9M/Models/Liveries/Default.png</texture>
	</animation>

	<animation>
		<type>material</type>
		<object-name>propeller</object-name>
		<texture-prop>texture</texture-prop>
		<texture>Aircraft/PC-9M/Models/Liveries/Propeller.png</texture>
	</animation>

	<animation>
		<type>material</type>
		<object-name>pdisk</object-name>
		<texture-prop>texture</texture-prop>
		<texture>Aircraft/PC-9M/Models/Liveries/Disk.png</texture>
	</animation>

	<animation>
		<type>material</type>
		<object-name>prop</object-name>
		<texture-prop>texture</texture-prop>
		<texture>Aircraft/PC-9M/Models/Liveries/Blur.png</texture>
	</animation>

	<!-- Animations -->

	<animation>
		<type>rotate</type>
		<object-name>raileron</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-20</factor>
		<axis>   
			<x1-m> 0.59</x1-m>
			<y1-m> 2.93</y1-m>
			<z1-m> 0.32</z1-m>
			<x2-m> 0.39</x2-m>
			<y2-m> 5.16</y2-m>
			<z2-m> 0.65</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>laileron</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-20</factor>
		<axis>   
			<x1-m> 0.59</x1-m>
			<y1-m>-2.93</y1-m>
			<z1-m> 0.32</z1-m>
			<x2-m> 0.39</x2-m>
			<y2-m>-5.16</y2-m>
			<z2-m> 0.65</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>riflap</object-name>
		<property>surface-positions/flap-pos-norm</property>
		<factor>40</factor>
		<axis>   
			<x1-m> 0.78</x1-m>
			<y1-m> 0.71</y1-m>
			<z1-m> 0.04</z1-m>
			<x2-m> 0.78</x2-m>
			<y2-m> 1.28</y2-m>
			<z2-m> 0.04</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>liflap</object-name>
		<property>surface-positions/flap-pos-norm</property>
		<factor>-40</factor>
		<axis>   
			<x1-m> 0.78</x1-m>
			<y1-m>-0.71</y1-m>
			<z1-m> 0.04</z1-m>
			<x2-m> 0.78</x2-m>
			<y2-m>-1.28</y2-m>
			<z2-m> 0.04</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>roflap</object-name>
		<property>surface-positions/flap-pos-norm</property>
		<factor>40</factor>
		<axis>   
			<x1-m> 0.78</x1-m>
			<y1-m> 1.29</y1-m>
			<z1-m> 0.04</z1-m>
			<x2-m> 0.64</x2-m>
			<y2-m> 2.88</y2-m>
			<z2-m> 0.28</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>loflap</object-name>
		<property>surface-positions/flap-pos-norm</property>
		<factor>-40</factor>
		<axis>   
			<x1-m> 0.78</x1-m>
			<y1-m>-1.29</y1-m>
			<z1-m> 0.04</z1-m>
			<x2-m> 0.64</x2-m>
			<y2-m>-2.88</y2-m>
			<z2-m> 0.28</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>rudder</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<factor>20</factor>
		<axis>   
			<x1-m> 4.89</x1-m>
			<y1-m> 0.00</y1-m>
			<z1-m> 0.86</z1-m>
			<x2-m> 4.95</x2-m>
			<y2-m> 0.00</y2-m>
			<z2-m> 2.36</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>elevator</object-name>
		<property>surface-positions/elevator-pos-norm</property>
		<factor>20</factor>
		<axis>   
			<x1-m> 5.77</x1-m>
			<y1-m>-1.59</y1-m>
			<z1-m> 0.71</z1-m>
			<x2-m> 5.77</x2-m>
			<y2-m> 1.59</y2-m>
			<z2-m> 0.71</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>airbrake</object-name>
		<object-name>abhydro</object-name>
		<property>surface-positions/speedbrake-pos-norm</property>
		<factor>40.00</factor>
		<axis>
			<x1-m> 0.81</x1-m>
			<y1-m>-0.15</y1-m>
			<z1-m> 0.02</z1-m>
			<x2-m> 0.81</x2-m>
			<y2-m> 0.15</y2-m>
			<z2-m> 0.02</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fwheel</object-name>
		<object-name>ftyre</object-name>
		<object-name>fgear</object-name>
		<object-name>fstrut</object-name>
		<object-name>furingu</object-name>
		<object-name>fhydro</object-name>
		<object-name>fdring</object-name>
		<object-name>fuscissor</object-name>
		<object-name>fdscissor</object-name>
		<property>gear/gear[0]/position-norm</property>
		<factor>100</factor>
		<offset-deg>-100</offset-deg>
		<axis>
			<x1-m>-2.33</x1-m>
			<y1-m>-0.05</y1-m>
			<z1-m> 0.48</z1-m>   
			<x2-m>-2.33</x2-m>
			<y2-m> 0.05</y2-m>
			<z2-m> 0.48</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fhydro</object-name>
		<property>gear/gear[0]/position-norm</property>
		<factor>-45</factor>
		<offset-deg>45</offset-deg>
		<axis>   
			<x1-m>-2.30</x1-m>
			<y1-m> 0.10</y1-m>
			<z1-m>-0.06</z1-m>
			<x2-m>-2.30</x2-m>
			<y2-m>-0.10</y2-m>
			<z2-m>-0.06</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fwheel</object-name>
		<object-name>ftyre</object-name>
		<object-name>fgear</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<factor>-20</factor>
		<center>
			<x-m>-2.41</x-m>
			<y-m> 0.00</y-m>
			<z-m>-0.31</z-m>
		</center>
		<axis>
			<x>0.0</x>
			<y>0.0</y>
			<z>1.0</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>rwheel</object-name>
		<object-name>rtyre</object-name>
		<object-name>rstrut</object-name>
		<object-name>rdstrut</object-name>
		<object-name>ruring</object-name>
		<object-name>rdring</object-name>
		<object-name>ruscissor</object-name>
		<object-name>rdscissor</object-name>
		<object-name>rhydro</object-name>
		<property>gear/gear[2]/position-norm</property>
		<factor>91</factor>
		<offset-deg>-91</offset-deg>
		<axis>
			<x1-m>-0.20</x1-m>
			<y1-m> 1.14</y1-m>
			<z1-m> 0.16</z1-m>   
			<x2-m> 0.20</x2-m>
			<y2-m> 1.29</y2-m>
			<z2-m> 0.16</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>rhydro</object-name>
		<property>gear/gear[2]/position-norm</property>
		<factor>-170</factor>
		<offset-deg>170</offset-deg>
		<axis>   
			<x1-m> 0.00</x1-m>
			<y1-m> 1.18</y1-m>
			<z1-m>-0.11</z1-m>
			<x2-m> 0.04</x2-m>
			<y2-m> 1.18</y2-m>
			<z2-m>-0.11</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>lwheel</object-name>
		<object-name>ltyre</object-name>
		<object-name>lstrut</object-name>
		<object-name>ldstrut</object-name>
		<object-name>luring</object-name>
		<object-name>ldring</object-name>
		<object-name>luscissor</object-name>
		<object-name>ldscissor</object-name>
		<object-name>lhydro</object-name>
		<property>gear/gear[1]/position-norm</property>
		<factor>-91</factor>
		<offset-deg>91</offset-deg>
		<axis>
			<x1-m>-0.20</x1-m>
			<y1-m>-1.14</y1-m>
			<z1-m> 0.16</z1-m>   
			<x2-m> 0.20</x2-m>
			<y2-m>-1.29</y2-m>
			<z2-m> 0.16</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>lhydro</object-name>
		<property>gear/gear[1]/position-norm</property>
		<factor>170</factor>
		<offset-deg>-170</offset-deg>
		<axis>   
			<x1-m> 0.00</x1-m>
			<y1-m>-1.18</y1-m>
			<z1-m>-0.11</z1-m>
			<x2-m> 0.04</x2-m>
			<y2-m>-1.18</y2-m>
			<z2-m>-0.11</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>frdoor</object-name>
		<property>gear/gear[0]/position-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.5</ind>
				<dep>92</dep>
			</entry>
			<entry>
				<ind>1.0</ind>
				<dep>92</dep>
			</entry>
		</interpolation>
		<axis>   
			<x1-m>-2.38</x1-m>
			<y1-m> 0.20</y1-m>
			<z1-m> 0.16</z1-m>
			<x2-m>-1.38</x2-m>
			<y2-m> 0.25</y2-m>
			<z2-m> 0.08</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>fldoor</object-name>
		<property>gear/gear[0]/position-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.5</ind>
				<dep>-92</dep>
			</entry>
			<entry>
				<ind>1.0</ind>
				<dep>-92</dep>
			</entry>
		</interpolation>
		<axis>   
			<x1-m>-2.38</x1-m>
			<y1-m>-0.20</y1-m>
			<z1-m> 0.16</z1-m>
			<x2-m>-1.38</x2-m>
			<y2-m>-0.25</y2-m>
			<z2-m> 0.08</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>rbodoor</object-name>
		<property>gear/gear[2]/position-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.5</ind>
				<dep>123</dep>
			</entry>
			<entry>
				<ind>1.0</ind>
				<dep>123</dep>
			</entry>
		</interpolation>
		<axis>   
			<x1-m>-0.04</x1-m>
			<y1-m> 1.29</y1-m>
			<z1-m> 0.00</z1-m>
			<x2-m> 0.27</x2-m>
			<y2-m> 1.29</y2-m>
			<z2-m> 0.00</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>lbodoor</object-name>
		<property>gear/gear[1]/position-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.5</ind>
				<dep>-123</dep>
			</entry>
			<entry>
				<ind>1.0</ind>
				<dep>-123</dep>
			</entry>
		</interpolation>
		<axis>   
			<x1-m>-0.04</x1-m>
			<y1-m>-1.29</y1-m>
			<z1-m> 0.00</z1-m>
			<x2-m> 0.27</x2-m>
			<y2-m>-1.29</y2-m>
			<z2-m> 0.00</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>rbdoor</object-name>
		<property>gear/gear[2]/position-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.4</ind>
				<dep>-88</dep>
			</entry>
			<entry>
				<ind>0.7</ind>
				<dep>-88</dep>
			</entry>
			<entry>
				<ind>1.0</ind>
				<dep>0</dep>
			</entry>
		</interpolation>
		<axis>   
			<x1-m> 0.01</x1-m>
			<y1-m> 0.03</y1-m>
			<z1-m>-0.01</z1-m>
			<x2-m> 0.32</x2-m>
			<y2-m> 0.03</y2-m>
			<z2-m> 0.00</z2-m>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>lbdoor</object-name>
		<property>gear/gear[1]/position-norm</property>
		<interpolation>
			<entry>
				<ind>0.0</ind>
				<dep>0</dep>
			</entry>
			<entry>
				<ind>0.4</ind>
				<dep>88</dep>
			</entry>
			<entry>
				<ind>0.7</ind>
				<dep>88</dep>
			</entry>
			<entry>
				<ind>1.0</ind>
				<dep>0</dep>
			</entry>
		</interpolation>
		<axis>   
			<x1-m> 0.01</x1-m>
			<y1-m>-0.03</y1-m>
			<z1-m>-0.01</z1-m>
			<x2-m> 0.32</x2-m>
			<y2-m>-0.03</y2-m>
			<z2-m> 0.00</z2-m>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>fwheel</object-name>
		<object-name>ftyre</object-name>
		<object-name>fgear</object-name>
		<object-name>fstrut</object-name>
		<object-name>furingu</object-name>
		<object-name>fhydro</object-name>
		<object-name>fdring</object-name>
		<object-name>fuscissor</object-name>
		<object-name>fdscissor</object-name>
		<condition>
			<greater-than>
				<property>gear/gear[0]/position-norm</property>
				<value>0</value>
			</greater-than>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>rwheel</object-name>
		<object-name>rtyre</object-name>
		<object-name>rstrut</object-name>
		<object-name>rdstrut</object-name>
		<object-name>ruring</object-name>
		<object-name>rdring</object-name>
		<object-name>ruscissor</object-name>
		<object-name>rdscissor</object-name>
		<object-name>rhydro</object-name>
		<condition>
			<greater-than>
				<property>gear/gear[2]/position-norm</property>
				<value>0</value>
			</greater-than>
		</condition>
	</animation>

	<animation>
		<type>select</type>
		<object-name>lwheel</object-name>
		<object-name>ltyre</object-name>
		<object-name>lstrut</object-name>
		<object-name>ldstrut</object-name>
		<object-name>luring</object-name>
		<object-name>ldring</object-name>
		<object-name>luscissor</object-name>
		<object-name>ldscissor</object-name>
		<object-name>lhydro</object-name>
		<condition>
			<greater-than>
				<property>gear/gear[1]/position-norm</property>
				<value>0</value>
			</greater-than>
		</condition>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>lights</object-name>
		<property>gear/gear[1]/position-norm</property>
		<factor>-0.10</factor>
		<axis>   
			<x>0.00</x>
			<y>0.00</y>
			<z>1.00</z>
		</axis>
	</animation>

	<animation>
		<type>rotate</type>
		<object-name>canopy</object-name>
		<object-name>arch</object-name>
		<object-name>archi</object-name>
		<property>canopy/position-norm</property>
		<factor>-80.00</factor>
		<axis>
			<x1-m> -0.82</x1-m>
			<y1-m>  0.45</y1-m>
			<z1-m>  1.00</z1-m>
			<x2-m>  1.23</x2-m>
			<y2-m>  0.44</y2-m>
			<z2-m>  1.15</z2-m>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>propeller</object-name>
		<condition>
			<less-than>
				<property>engines/engine[0]/n2</property>
				<value>50.0001</value>
			</less-than>
		</condition>
	</animation>

	<animation>
		<type>spin</type>
		<object-name>propeller</object-name>
		<property>engines/engine[0]/n2</property>
		<factor>3</factor>
		<center>
			<x-m>-4.36</x-m>
			<y-m> 0.00</y-m>
			<z-m> 0.81</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>prop</object-name>
		<condition>
			<greater-than>
				<property>engines/engine[0]/n2</property>
				<value>50.000</value>
			</greater-than>
			<less-than>
				<property>engines/engine[0]/n2</property>
				<value>70.0001</value>
			</less-than>
		</condition>
	</animation>

	<animation>
		<type>spin</type>
		<object-name>prop</object-name>
		<property>engines/engine[0]/n2</property>
		<center>
			<x-m>-3.80</x-m>
			<y-m> 0.00</y-m>
			<z-m> 0.80</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>

	<animation>
		<type>select</type>
		<object-name>pdisk</object-name>
		<condition>
			<greater-than>
				<property>engines/engine[0]/n2</property>
				<value>70.0000</value>
			</greater-than>
		</condition>
	</animation>

	<animation>
		<type>spin</type>
		<object-name>pdisk</object-name>
		<property>engines/engine[0]/n2</property>
		<factor>.5</factor>   
		<center>
			<x-m>-3.80</x-m>
			<y-m> 0.00</y-m>
			<z-m> 0.80</z-m>
		</center>
		<axis>
			<x>1.0</x>
			<y>0.0</y>
			<z>0.0</z>
		</axis>
	</animation>

	<!-- Gear Compression -->

	<animation>
		<type>rotate</type>
		<object-name>fwheel</object-name>
		<object-name>ftyre</object-name>
		<object-name>fgear</object-name>
		<object-name>fdring</object-name>
		<object-name>fdscissor</object-name>
		<object-name>fuscissor</object-name>
		<property>gear/gear[0]/compression-norm[0]</property>
		<factor>0.3</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>rwheel</object-name>
		<object-name>rtyre</object-name>
		<object-name>rdstrut</object-name>
		<object-name>rdring</object-name>
		<object-name>rdscissor</object-name>
		<property>gear/gear[2]/compression-norm[0]</property>
		<factor>0.3</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>translate</type>
		<object-name>lwheel</object-name>
		<object-name>ltyre</object-name>
		<object-name>ldstrut</object-name>
		<object-name>ldring</object-name>
		<object-name>ldscissor</object-name>
		<property>gear/gear[1]/compression-norm[0]</property>
		<factor>0.3</factor>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

</PropertyList>