<?xml version="1.0"?>

<PropertyList>

	<!-- Trucks models and artworks courtesy of XPGoodWay Team
	(http://www.xpgoodwayteam.org/site_xpushback/) -->
	
	<path>Douglas.ac</path>

	<!-- switch to night/day textures -->
	<animation>
		<type>textranslate</type>
		<property>/sim/time/sun-angle-rad</property>
		<step>1.60</step>
		<factor>0.318471338</factor>
		<center>
			<x-m>0</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</center>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

	<animation>
		<type>material</type>
		<condition>		
			<greater-than>		
				<property>/sim/time/sun-angle-rad</property>
				<value>1.60</value>
			</greater-than>
		</condition>
		<emission>	
			<red>1</red>	
			<green>1</green>	
			<blue>1</blue>
		</emission>
	</animation>

	<animation>
		<type>material</type>
		<condition>		
			<less-than-equals>		
				<property>/sim/time/sun-angle-rad</property>
				<value>1.60</value>
			</less-than-equals>
		</condition>
		<emission>	
			<red>0</red>	
			<green>0</green>	
			<blue>0</blue>
		</emission>
	</animation>

	<animation>
		<type>select</type>
		<condition>
			<property>sim/model/pushback/enabled</property>
			<property>gear/gear[0]/wow</property>
		</condition>
	</animation>

	<animation>
		<type>rotate</type>
		<property>fdm/jsbsim/fcs/pushback-steer-deg</property>
		<factor>-1</factor>
		<center>
			<x-m>1.53665</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>

	<!-- change heading of the pushback when driving the arc -->
	<animation>
		<type>rotate</type>
		<property>sim/model/pushback/position-norm</property>
		<factor>-90</factor>
		<offset-deg>90</offset-deg>
		<center>
			<x-m>0</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>

	<!-- compensate for gear compression -->
	<animation>
		<type>translate</type>
		<property>gear/gear[0]/compression-ft</property>
		<factor>0.3048</factor>
		<axis>
			<x>0</x>
			<y>0</y>
			<z>1</z>
		</axis>
	</animation>

	<!-- precalculated sin and asin to move the pushback on a 90deg arc, 25m radius -->
	<animation>
		<type>translate</type>
		<property>sim/model/pushback/position-norm</property>
		<interpolation>
			<entry><ind>1.000000</ind><dep>0.000000</dep></entry>
			<entry><ind>0.950000</ind><dep>1.961477</dep></entry>
			<entry><ind>0.900000</ind><dep>3.910862</dep></entry>
			<entry><ind>0.850000</ind><dep>5.836134</dep></entry>
			<entry><ind>0.800000</ind><dep>7.725425</dep></entry>
			<entry><ind>0.750000</ind><dep>9.567086</dep></entry>
			<entry><ind>0.700000</ind><dep>11.349763</dep></entry>
			<entry><ind>0.650000</ind><dep>13.062464</dep></entry>
			<entry><ind>0.600000</ind><dep>14.694631</dep></entry>
			<entry><ind>0.550000</ind><dep>16.236201</dep></entry>
			<entry><ind>0.500000</ind><dep>17.677670</dep></entry>
			<entry><ind>0.450000</ind><dep>19.010149</dep></entry>
			<entry><ind>0.400000</ind><dep>20.225425</dep></entry>
			<entry><ind>0.350000</ind><dep>21.316004</dep></entry>
			<entry><ind>0.300000</ind><dep>22.275163</dep></entry>
			<entry><ind>0.250000</ind><dep>23.096988</dep></entry>
			<entry><ind>0.200000</ind><dep>23.776413</dep></entry>
			<entry><ind>0.150000</ind><dep>24.309248</dep></entry>
			<entry><ind>0.100000</ind><dep>24.692209</dep></entry>
			<entry><ind>0.050000</ind><dep>24.922933</dep></entry>
			<entry><ind>0.000000</ind><dep>25.000000</dep></entry>
		</interpolation>
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>
	
	<animation>
		<type>translate</type>
		<property>sim/model/pushback/position-norm</property>
		<interpolation>
			<entry><ind>1.000000</ind><dep>0.000000</dep></entry>
			<entry><ind>0.950000</ind><dep>0.077067</dep></entry>
			<entry><ind>0.900000</ind><dep>0.307791</dep></entry>
			<entry><ind>0.850000</ind><dep>0.690752</dep></entry>
			<entry><ind>0.800000</ind><dep>1.223587</dep></entry>
			<entry><ind>0.750000</ind><dep>1.903012</dep></entry>
			<entry><ind>0.700000</ind><dep>2.724837</dep></entry>
			<entry><ind>0.650000</ind><dep>3.683996</dep></entry>
			<entry><ind>0.600000</ind><dep>4.774575</dep></entry>
			<entry><ind>0.550000</ind><dep>5.989851</dep></entry>
			<entry><ind>0.500000</ind><dep>7.322330</dep></entry>
			<entry><ind>0.450000</ind><dep>8.763799</dep></entry>
			<entry><ind>0.400000</ind><dep>10.305369</dep></entry>
			<entry><ind>0.350000</ind><dep>11.937536</dep></entry>
			<entry><ind>0.300000</ind><dep>13.650238</dep></entry>
			<entry><ind>0.250000</ind><dep>15.432914</dep></entry>
			<entry><ind>0.200000</ind><dep>17.274575</dep></entry>
			<entry><ind>0.150000</ind><dep>19.163866</dep></entry>
			<entry><ind>0.100000</ind><dep>21.089138</dep></entry>
			<entry><ind>0.050000</ind><dep>23.038523</dep></entry>
			<entry><ind>0.000000</ind><dep>25.000000</dep></entry>
		</interpolation>
		<axis>
			<x>0</x>
			<y>-1</y>
			<z>0</z>
		</axis>
	</animation>
	
	<!-- compensate for pitch of aircraft, keep pushback level -->
	<animation>
		<type>rotate</type>
		<property>orientation/pitch-deg</property>
		<factor>-1</factor>
		<center>
			<x-m>0</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</center>
		<axis>
			<x>0</x>
			<y>1</y>
			<z>0</z>
		</axis>
	</animation>

</PropertyList>