<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="AP">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>AP Trailer</en>
        <de>AP 2Achser</de>
    </name>
    <description></description>
    <typeDesc>
        <en>AP</en>
        <de>AP</de>
    </typeDesc>
    <filename>AP2013.i3d</filename>
    <size width="3.0" length="12.0" lengthOffset="2" />
    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0>0" radius="0.616" deltaY="0.25" suspTravel="0.3" spring="120" damper="0" mass="1.6" />
        <wheel driveMode="0" repr="0>1" radius="0.616" deltaY="0.25" suspTravel="0.3" spring="120" damper="0" mass="1.6" />
        <wheel driveMode="0" repr="1>0" radius="0.616" deltaY="0.25" suspTravel="0.3" spring="120" damper="0" mass="1.6" />
        <wheel driveMode="0" repr="1>1" radius="0.616" deltaY="0.25" suspTravel="0.3" spring="120" damper="0" mass="1.6" />
    </wheels>
    <brakeForce>1</brakeForce>
	<downForce>5</downForce>
	
	<lights count="1">
		<light1 index="7|1" />
    </lights>	
	<lightCoronas>
		<lightCorona index="7|0" />
	</lightCoronas>	
    
	<attacherJoint index="2>0" jointType="trailer" rootNode="2>"/>
    <trailerAttacherJoints>
        <trailerAttacherJoint index="0>9" low="false"/>
	</trailerAttacherJoints>
    
	<massScale value="0.1" />
    <capacity>18000</capacity>

    <fillTypes fruitTypes="wheat rape maize barley chaff grass sunflower"/>
	
	<fillPlanes>
		<fillPlane type="chaff">
            <node index="0>3|0|0|0|2">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>
        </fillPlane>
		<fillPlane type="grass">
            <node index="0>3|0|0|0|2">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>
        </fillPlane>
		<fillPlane type="rape">
            <node index="0>3|0|0|0|1">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>
			<node index="0>3|0|0|3|4|1">
				<key time="0" y="-0.81981" scale="1 1 1"/>
				<key time="1" y="-0.81981" scale="1 1 1"/>
            </node>
        </fillPlane>
                <fillPlane type="sunflower">
            <node index="0>3|0|0|0|1">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>
			<node index="0>3|0|0|3|4|1">
				<key time="0" y="-0.81981" scale="1 1 1"/>
				<key time="1" y="-0.81981" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="maize">
            <node index="0>3|0|0|0|3">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>
			<node index="0>3|0|0|3|4|2">
				<key time="0" y="-0.81981" scale="1 1 1"/>
				<key time="1" y="-0.81981" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="wheat">
            <node index="0>3|0|0|0|0">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>
			<node index="0>3|0|0|3|4|0">
				<key time="0" y="-0.81981" scale="1 1 1"/>
				<key time="1" y="-0.81981" scale="1 1 1"/>
            </node>
        </fillPlane>
		<fillPlane type="barley">
            <node index="0>3|0|0|0|0">
				<key time="0" y="1" scale="1 0.001 1"/>
				<key time="1" y="2.516" scale="1 1.216 1"/>
            </node>           
			<node index="0>3|0|0|3|4|0">
				<key time="0" y="-0.81981" scale="1 1 1"/>
				<key time="1" y="-0.81981" scale="1 1 1"/>
            </node>
        </fillPlane>
		
    </fillPlanes>
	
    <hydraulicSound file="$data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="0.9" volume="1.0" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />

      
	<tipReferencePoint index="8" left="8|3" right="8|4" back="8|5" ULW="8|6" />
    
	<tipAnimation rootNode="3|0" speedScale="1" clip="left1Source" fixPoint1="0>3|0|0|1"fixPoint2="0>4|0|0|0|0|0|0|0|0">	
		<left rootNode="3|0" speedScale="1" clip="left1Source" DirectionNode="0>4|0"/>
		<right rootNode="3" speedScale="1" clip="right1Source" DirectionNode="0>4|0" />
		<back rootNode="3|0|0" speedScale="1" clip="back1Source" DirectionNode="0>4" />
		<cylinders node="0>4|0|0|0"/>
		<cylinders node="0>4|0|0|0|0"/>
		<cylinders node="0>4|0|0|0|0|0"/>
		<cylinders node="0>4|0|0|0|0|0|0"/>
		<cylinders node="0>4|0|0|0|0|0|0|0"/>
	</tipAnimation>
	
    <dischargeParticleSystems>
        <dischargeParticleSystem type="wheat" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
    </dischargeParticleSystems> 
	
    <dischargeParticleSystemsback>
        <dischargeParticleSystem type="wheat" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_Wheat.i3d" />
        <dischargeParticleSystem type="rape" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_Rape.i3d" />
        <dischargeParticleSystem type="sunflower" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_Rape.i3d" />
        <dischargeParticleSystem type="maize" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_Wheat.i3d" />
        <dischargeParticleSystem type="barley" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_Wheat.i3d" />
        <dischargeParticleSystem type="grass" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_chaffgrass.i3d" />
        <dischargeParticleSystem type="chaff" node="8|2" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_B_chaffgrass.i3d" />
    </dischargeParticleSystemsback>   

    <dischargeParticleSystemsright>
        <dischargeParticleSystem type="wheat" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
        <dischargeParticleSystem type="rape" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Rape.i3d" />
        <dischargeParticleSystem type="sunflower" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Rape.i3d" />
        <dischargeParticleSystem type="maize" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
        <dischargeParticleSystem type="barley" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
        <dischargeParticleSystem type="grass" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_chaffgrass.i3d" />
        <dischargeParticleSystem type="chaff" node="8|1" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_chaffgrass.i3d" />
    </dischargeParticleSystemsright> 

    <dischargeParticleSystemsleft>
        <dischargeParticleSystem type="wheat" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
        <dischargeParticleSystem type="rape" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Rape.i3d" />
        <dischargeParticleSystem type="sunflower" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Rape.i3d" />
        <dischargeParticleSystem type="maize" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
        <dischargeParticleSystem type="barley" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_Wheat.i3d" />
        <dischargeParticleSystem type="chaff" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_chaffgrass.i3d" />
        <dischargeParticleSystem type="grass" node="8|0" position="0 0 0" rotation="0 0 0" file="particleSystems/dischargeParticleSystem_S_chaffgrass.i3d" />
    </dischargeParticleSystemsleft> 

	<ulw hasULW="true">
		<dischargeParticleSystemsULW>
			<dischargeParticleSystem type="wheat" node="0>3|0|0|3|4|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/wheatParticleSystem.i3d" />
			<dischargeParticleSystem type="rape" node="0>3|0|0|3|4|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/rapeParticleSystem.i3d" />
                        <dischargeParticleSystem type="sunflower" node="0>3|0|0|3|4|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/rapeParticleSystem.i3d" />
			<dischargeParticleSystem type="maize" node="0>3|0|0|3|4|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/wheatParticleSystem.i3d" />
			<dischargeParticleSystem type="barley" node="0>3|0|0|3|4|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleSystems/wheatParticleSystem.i3d" />
		</dischargeParticleSystemsULW>
		<schnecke node="0>3|0|0|3|4"/>
		<discharge FruitTypes="wheat rape maize barley sunflower"/>
		<Anim TipanimationName="tipULW" DooranimationName="openDoor"/>
		<trigger node="0>15"/>
	</ulw>

    <movingParts>
        <movingPart index="0>3|0|0|3|2|0" referencePoint="0>3|0|0|3|1|0" referenceFrame="0>3|0|0|3|1|0" invertZ="false">
        </movingPart> 
    </movingParts>
	
	<movingTools>
        <movingTool index="0>3|0|0|3|2">
            <dependentPart index="0>3|0|0|3|2|0" />
        </movingTool>
    </movingTools>

    <animations>
        <animation name="tipULW">
            <part node="0>3|0|0" startTime="0" endTime="4.0" startRot="0 0 0" endRot="-18.61223 0 0"/>
        </animation>
        <animation name="openDoor">            
			<part node="0>3|0|0|3|1" startTime="0" endTime="2.0" startTrans="-0.00591 -0.7608 0.01364" endTrans="-0.00591 -0.60215 0.01364"/>
            <part node="0>3|0|0|3|2" startTime="0" endTime="2.0" startRot="0 0 0" endRot="0 0 -53.32017"/>
        </animation>
	</animations>	

    <components count="3">
        <component1 centerOfMass="0 0 0" solverIterationCount="40" />
        <component2 centerOfMass="0 0 0" solverIterationCount="40" />
        <component3 centerOfMass="0 0 0" solverIterationCount="20" />
        <joint component1="0" component2="1" index="0>2" rotLimit="0 120 0" transLimit="0 0 0" />
        <joint component1="1" component2="2" index="1>2" rotLimit="0 0 10" transLimit="0 0 0" />
    </components>
	
	
    <fillRootNode index="0>" />
    <exactFillRootNode index="0>10" />
    <fillAutoAimTargetNode index="0>11" />
    <fillMassNode index="0>" />
	
	<fillNode index="0>10"/>

	<mooringblocks>
		<enabled>		
			<mooringblock node="0>16"/>
			<mooringblock node="0>6"/>
		</enabled>		
		<disabled>		
			<mooringblock node="0>5"/>
		</disabled>	
	</mooringblocks>
</vehicle>

