<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
	<path>hk36.ac</path>
	
	<!-- EFFECTS -->
	<effect>
		<inherits-from>Effects/model-transparent</inherits-from>
		<object-name>prop.disc</object-name>
	</effect>
	<effect>
		<inherits-from>Effects/exterior/fuselage</inherits-from>
		<object-name>fuselage</object-name>
		<object-name>rudder</object-name>
		<object-name>wings</object-name>
		<object-name>winglets</object-name>
		<object-name>aileron.L</object-name>
		<object-name>aileron.R</object-name>
		<object-name>airbrake.L</object-name>
		<object-name>airbrake.R</object-name>
		<object-name>gear.F.1</object-name>
		<object-name>gear.F.2</object-name>
		<object-name>gear.F.3</object-name>
		<object-name>gear.F.4</object-name>
		<object-name>gear.L</object-name>
		<object-name>gear.R</object-name>
		<object-name>wheel_fairing.L</object-name>
		<object-name>wheel_fairing.R</object-name>
		<object-name>hstab</object-name>
		<object-name>elevator</object-name>
		<object-name>canopy.frame</object-name>
		<object-name>canopy.solid</object-name>
		<object-name>prop.1</object-name>
		<object-name>prop.2</object-name>
		<object-name>spinner</object-name>
	</effect>
	<animation>
		<type>noshadow</type>
		<object-name>prop.disc</object-name>
	</animation>
	
	<!-- LIVERIES -->
	<animation>
		<type>material</type>
		<object-name>fuselage</object-name>
		<object-name>rudder</object-name>
		<object-name>wings</object-name>
		<object-name>winglets</object-name>
		<object-name>aileron.L</object-name>
		<object-name>aileron.R</object-name>
		<object-name>airbrake.L</object-name>
		<object-name>airbrake.R</object-name>
		<object-name>gear.F.1</object-name>
		<object-name>gear.F.2</object-name>
		<object-name>gear.F.3</object-name>
		<object-name>gear.F.4</object-name>
		<object-name>gear.L</object-name>
		<object-name>gear.R</object-name>
		<object-name>wheel_fairing.L</object-name>
		<object-name>wheel_fairing.R</object-name>
		<object-name>hstab</object-name>
		<object-name>elevator</object-name>
		<object-name>canopy.frame</object-name>
		<object-name>canopy.solid</object-name>
		<object-name>prop.1</object-name>
		<object-name>prop.2</object-name>
		<object-name>spinner</object-name> 
		<property-base>sim/model/livery</property-base> 
		<texture-prop>texture</texture-prop> 
		<texture>hk36.png</texture>
	</animation>
	
	<!-- INTERIOR -->
	<model>
		<usage>interior</usage>
		<path>interior.xml</path>
	</model>
	<model>
		<path>canopy.xml</path>
	</model>
	
	<!-- EXTERIOR -->
	
	<!--	Select objects based on model depicted	-->
	<animation>
		<type>select</type>
		<condition>
			<or>
				<equals>
					<property>sim/aero</property>
					<value>hk36-ts</value>
				</equals>
				<equals>
					<property>sim/aero</property>
					<value>hk36-tc</value>
				</equals>
				<equals>
					<property>sim/aero</property>
					<value>hk36-tts</value>
				</equals>
				<equals>
					<property>sim/aero</property>
					<value>hk36-ttc</value>
				</equals>
			</or>
		</condition>
		<object-name>winglets</object-name>
	</animation>
	
	<!-- GEAR -->
	<!-- Front -->
	<animation>
		<type>rotate</type>
		<object-name>gear.F.1</object-name>
		<object-name>gear.F.2</object-name>
		<object-name>gear.F.3</object-name>
		<object-name>gear.F.4</object-name>
		<object-name>wheel.F</object-name>
		<property>gear/gear[0]/compression-ft</property>
		<interpolation>
			<entry>
				<ind> 0 </ind>
				<dep> 0 </dep>
			</entry>
			<entry>
				<ind>1</ind>
				<dep> 33 </dep>
			</entry>
		</interpolation>
		<center>
			<x-m>-0.70787</x-m>
			<z-m>-0.50265</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>gear.F.2</object-name>
		<object-name>gear.F.3</object-name>
		<object-name>gear.F.4</object-name>
		<object-name>wheel.F</object-name>
		<property>gear/gear[0]/steering-norm</property>
		<factor>-360</factor>
		<axis>
			<object-name>gear.F.axis</object-name>
		</axis>
	</animation>
	<!-- Calculate spin factor:
			wheel speed ws in m/s
			diamter: 0.26m
			one spin: d*pi=0.816814089933m
			factor = ws / d*pi ~ 1.6212
	-->
	<animation>
		<type>spin</type>
		<object-name>wheel.F</object-name>
		<property>gear/gear[0]/rollspeed-ms</property>
		<factor>1.6212</factor>
		<center>
			<x-m>-1.14368</x-m>
			<z-m>-1.0404</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	
	<!-- Main -->
	<animation>
		<type>rotate</type>
		<object-name>gear.L</object-name>
		<object-name>wheel.L</object-name>
		<object-name>wheel_fairing.L</object-name>
		<property>gear/gear[1]/compression-ft</property>
		<interpolation>
			<entry>
				<ind> 0 </ind>
				<dep> -3.81 </dep>
			</entry>
			<entry>
				<ind>1</ind>
				<dep> 23 </dep>
			</entry>
		</interpolation>
		<center>
			<y-m>-0.408316</y-m>
			<z-m>-0.479708</z-m>
		</center>
		<axis>
			<x>-1</x>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>gear.R</object-name>
		<object-name>wheel.R</object-name>
		<object-name>wheel_fairing.R</object-name>
		<property>gear/gear[2]/compression-ft</property>
		<interpolation>
			<entry>
				<ind> 0 </ind>
				<dep> -3.81 </dep>
			</entry>
			<entry>
				<ind>1</ind>
				<dep> 23 </dep>
			</entry>
		</interpolation>
		<center>
			<y-m>0.408316</y-m>
			<z-m>-0.479708</z-m>
		</center>
		<axis>
			<x>1</x>
		</axis>
	</animation>
	<!-- Calculate spin factor:
			wheel speed ws in m/s
			diamter: 0.38m
			one spin: d*pi
			factor = ws / d*pi ~ 0.8377
	-->
	<animation>
		<type>spin</type>
		<object-name>wheel.L</object-name>
		<property>gear/gear[1]/rollspeed-ms</property>
		<factor>0.8377</factor>
		<center>
			<x-m> 0.440936</x-m>
			<z-m>-1.01035 </z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	<animation>
		<type>spin</type>
		<object-name>wheel.R</object-name>
		<property>gear/gear[2]/rollspeed-ms</property>
		<factor>0.8377</factor>
		<center>
			<x-m> 0.440936</x-m>
			<z-m>-1.01035 </z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	
	<!-- POWERPLANT -->
	<!-- Propeller -->
	<animation>
		<type>spin</type>
		<object-name>prop.1</object-name>
		<object-name>prop.2</object-name>
		<object-name>spinner</object-name>
		<property>engines/engine/thruster/rpm</property>
		<axis>
			<x>-1</x>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>prop.1</object-name>
		<property>engines/engine/thruster/pitch</property>
		<center>
			<x-m>-1.79269</x-m>
		</center>
		<axis>
			<z>1</z>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>prop.2</object-name>
		<property>engines/engine/thruster/pitch</property>
		<center>
			<x-m>-1.79269</x-m>
		</center>
		<axis>
			<z>-1</z>
		</axis>
	</animation>
	<animation>
		<type>select</type>
		<object-name>prop.1</object-name>
		<object-name>prop.2</object-name>
		<condition>
			<less-than-equals>
				<property>engines/engine/thruster/rpm</property>
				<value>800</value>
			</less-than-equals>
		</condition>
	</animation>
	<animation>
		<type>select</type>
		<object-name>prop.disc</object-name>
		<condition>
			<greater-than>
				<property>engines/engine/thruster/rpm</property>
				<value>700</value>
			</greater-than>
		</condition>
	</animation> 
	<animation> 
		<type>material</type> 
		<object-name>prop.disc</object-name>
		 <transparency>
			<alpha-prop>engines/engine/thruster/rpm</alpha-prop>
			<factor>-0.0001</factor>
			<offset>.3</offset>
		</transparency>
	</animation>
	
	<!-- FLIGHT CONTROL SURFACES -->
	<animation>
		<type>rotate</type>
		<object-name>aileron.L</object-name>
		<object-name>aileron.L.actuator</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>-23.55</factor>
		<axis>
			<object-name>aileron.L.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>aileron.L.actuator</object-name>
		<property>surface-positions/left-aileron-pos-norm</property>
		<factor>23.55</factor>
		<axis>
			<object-name>aileron.L.actuator.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>aileron.R</object-name>
		<object-name>aileron.R.actuator</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<factor>-23.55</factor>
		<axis>
			<object-name>aileron.R.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>aileron.R.actuator</object-name>
		<property>surface-positions/right-aileron-pos-norm</property>
		<factor>23.55</factor>
		<axis>
			<object-name>aileron.R.actuator.axis</object-name>
		</axis>
	</animation>
	<!-- Airbrakes -->
	<animation>
		<type>rotate</type>
		<object-name>airbrake.L.act.1</object-name>
		<object-name>airbrake.L.act.connect.1</object-name>
		<object-name>airbrake.L.act.connect.2</object-name>
		<object-name>airbrake.L</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor>32</factor>
		<axis>
			<object-name>airbrake.L.act.1.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.L.act.connect.1</object-name>
		<object-name>airbrake.L.act.connect.2</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor>-32</factor>
		<axis>
			<object-name>airbrake.L.act.connect.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.L.act.2</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor>32</factor>
		<axis>
			<object-name>airbrake.L.act.2.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.L</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor>-32</factor>
		<axis>
			<object-name>airbrake.L.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.R.act.1</object-name>
		<object-name>airbrake.R.act.connect.1</object-name>
		<object-name>airbrake.R.act.connect.2</object-name>
		<object-name>airbrake.R</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor>-32</factor>
		<axis>
			<object-name>airbrake.R.act.1.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.R.act.connect.1</object-name>
		<object-name>airbrake.R.act.connect.2</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor> 32</factor>
		<axis>
			<object-name>airbrake.R.act.connect.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.R.act.2</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor>-32</factor>
		<axis>
			<object-name>airbrake.R.act.2.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>airbrake.R</object-name>
		<property>surface-positions/spoilers-pos-norm</property>
		<factor> 32</factor>
		<axis>
			<object-name>airbrake.R.axis</object-name>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>rudder</object-name>
		<property>surface-positions/rudder-pos-norm</property>
		<factor>26.565</factor>
		<axis>
			<x1-m>4.94195</x1-m>
			<y1-m>0.0</y1-m>
			<z1-m>-0.077982</z1-m>
			<x2-m>5.34252</x2-m>
			<y2-m>0.0</y2-m>
			<z2-m>1.2011</z2-m>
		</axis>
	</animation>
	<animation>
		<type>rotate</type>
		<object-name>elevator</object-name>
		<property>surface-positions/elevator-pos-norm</property>
		<factor>18</factor>
		<center>
			<x-m>5.35332</x-m>
			<z-m>1.26544</z-m>
		</center>
		<axis>
			<y>1</y>
		</axis>
	</animation>
	
	<!--	EXTERNAL LIGHTS	-->
	<model>
		<name>lights</name>
		<path>lights.xml</path>
	</model>
	
	<!--	TOW DEVICE	-->
	<animation>
		<type>select</type>
		<object-name>tow.device</object-name>
		<condition>
			<equals>
				<property>sim/model/towing</property>
				<value>1</value>
			</equals>
		</condition>
	</animation>
</PropertyList>
