﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="augerWaggon">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>HORSCH Titan 34 UW</en>
        <de>HORSCH Titan 34 UW</de>
    </name>
	<typeDesc>$l10n_TypeDesc_AugerWaggon</typeDesc>
    <filename>data/vehicles/trailers/horsch/horschTitan34UW.i3d</filename>
	
    <size width="4.5" length="10"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="1" deltaY="0" suspTravel="0.08" spring="20" damper="5" mass="0.15" lateralStiffness="1" />
        <wheel driveMode="0" repr="1" driveNode="1|0" radius="1" deltaY="0" suspTravel="0.08" spring="20" damper="5" mass="0.15" lateralStiffness="1" />
    </wheels>
    <brakeForce>0.5</brakeForce>
	<downForce>4</downForce>
    <capacity>34000</capacity>
	<massPerFillLevel value="0.00005" />

    <lights>
        <light decoration="0>10" lightType="0"/>
		<light fakeLight="0>7|0|3" decoration="0>7|0|2" lightType="1"/>
    </lights>

	<brakeLights>
		<brakeLight index="0>11" />
	</brakeLights>

    <fillTypes fruitTypes="wheat rape maize barley chaff"/>
	
    <fillPlanes>
        <fillPlane type="wheat">
            <node index="0>9|0">
                <key time="0.7" translation="-0.053 2.917 2.195" scale="1 0.025 1"/>
                <key time="0.716" translation="-0.053 2.931 2.195" scale="1 0.025 1"/>
                <key time="1" translation="-0.053 3.563 2.195" scale="1 1.05 1"/>				
            </node>
            <node index="0>9|1">
                <key time="0.358" translation="0 -0.332 -0.495" scale="1 1 1"/>
                <key time="0.366" translation="0 -0.314 -0.469" scale="1 1 1"/>
                <key time="0.516" translation="0 0.015 -0.017" scale="1 1 1"/>
            </node>            
			<node index="0>9|2">
                <key time="0" translation="0.011 1.332 0.084" scale="0.355 0.15 0.19"/>	
                <key time="0.125" translation="0.01 1.595 0.445" scale="0.521 0.187 0.225"/>
                <key time="0.325" translation="0.009 2.045 1.064" scale="0.729 0.25 0.533"/>
                <key time="0.583" translation="0.007 2.626 1.864" scale="1.02 0.5 0.905"/>
                <key time="0.625" translation="0.007 2.719 1.993" scale="1.048 0.517 0.965"/>
                <key time="0.708" translation="0.011 2.907 2.185" scale="1.046 0.55 1.012"/>
                <key time="0.833" translation="0.012 3.188 2.185" scale="1.037 0.6 1.012"/>
                <key time="0.958" translation="0.012 3.469 2.185" scale="1.029 1 1.012"/>
                <key time="1" translation="0.012 3.563 2.185" scale="1.029 1 1.012"/>
            </node>			
			<node index="0>9|3">
                <key time="0" translation="0.012 1.332 -1.386" scale="0.378 0.1 0.55"/>
                <key time="0.308" translation="0.012 2.012 -2.663" scale="0.372 0.25 0.78"/>
                <key time="0.583" translation="0.012 2.635 -3.834" scale="1 0.5 1.025"/>
                <key time="0.625" translation="0.011 2.73 -3.847" scale="1.005 0.517 1"/>
                <key time="0.833" translation="0.005 3.202 -3.915" scale="1.03 0.6 1"/>
                <key time="1" translation="0 3.58 -3.867" scale="1.007 1 1"/>
            </node>
        </fillPlane>
        <fillPlane type="rape">
            <node index="0>9|4">
                <key time="0.7" translation="-0.053 2.917 2.195" scale="1 0.025 1"/>
                <key time="0.716" translation="-0.053 2.931 2.195" scale="1 0.025 1"/>
                <key time="1" translation="-0.053 3.563 2.195" scale="1 1.05 1"/>				
            </node>
            <node index="0>9|5">
                <key time="0.358" translation="0 -0.332 -0.495" scale="1 1 1"/>
                <key time="0.366" translation="0 -0.314 -0.469" scale="1 1 1"/>
                <key time="0.516" translation="0 0.015 -0.017" scale="1 1 1"/>				
            </node>            
			<node index="0>9|6">
                <key time="0" translation="0.011 1.332 0.084" scale="0.355 0.15 0.19"/>	
                <key time="0.125" translation="0.01 1.595 0.445" scale="0.521 0.187 0.225"/>
                <key time="0.325" translation="0.009 2.045 1.064" scale="0.729 0.25 0.533"/>
                <key time="0.583" translation="0.007 2.626 1.864" scale="1.02 0.5 0.905"/>
                <key time="0.625" translation="0.007 2.719 1.993" scale="1.048 0.517 0.965"/>
                <key time="0.708" translation="0.011 2.907 2.185" scale="1.046 0.55 1.012"/>
                <key time="0.833" translation="0.012 3.188 2.185" scale="1.037 0.6 1.012"/>
                <key time="0.958" translation="0.012 3.469 2.185" scale="1.029 1 1.012"/>
                <key time="1" translation="0.012 3.563 2.185" scale="1.029 1 1.012"/>
            </node>			
			<node index="0>9|7">
                <key time="0" translation="0.012 1.332 -1.386" scale="0.378 0.1 0.55"/>
                <key time="0.308" translation="0.012 2.012 -2.663" scale="0.372 0.25 0.78"/>
                <key time="0.583" translation="0.012 2.635 -3.834" scale="1 0.5 1.025"/>
                <key time="0.625" translation="0.011 2.73 -3.847" scale="1.005 0.517 1"/>
                <key time="0.833" translation="0.005 3.202 -3.915" scale="1.03 0.6 1"/>
                <key time="1" translation="0 3.58 -3.867" scale="1.007 1 1"/>
            </node>
        </fillPlane>        
		<fillPlane type="maize">
            <node index="0>9|8">
                <key time="0.7" translation="-0.053 2.917 2.195" scale="1 0.025 1"/>
                <key time="0.716" translation="-0.053 2.931 2.195" scale="1 0.025 1"/>
                <key time="1" translation="-0.053 3.563 2.195" scale="1 1.05 1"/>				
            </node>
            <node index="0>9|9">
                <key time="0.358" translation="0 -0.332 -0.495" scale="1 1 1"/>
                <key time="0.366" translation="0 -0.314 -0.469" scale="1 1 1"/>
                <key time="0.516" translation="0 0.015 -0.017" scale="1 1 1"/>				
            </node>            
			<node index="0>9|10">
                <key time="0" translation="0.011 1.332 0.084" scale="0.355 0.15 0.19"/>	
                <key time="0.125" translation="0.01 1.595 0.445" scale="0.521 0.187 0.225"/>
                <key time="0.325" translation="0.009 2.045 1.064" scale="0.729 0.25 0.533"/>
                <key time="0.583" translation="0.007 2.626 1.864" scale="1.02 0.5 0.905"/>
                <key time="0.625" translation="0.007 2.719 1.993" scale="1.048 0.517 0.965"/>
                <key time="0.708" translation="0.011 2.907 2.185" scale="1.046 0.55 1.012"/>
                <key time="0.833" translation="0.012 3.188 2.185" scale="1.037 0.6 1.012"/>
                <key time="0.958" translation="0.012 3.469 2.185" scale="1.029 1 1.012"/>
                <key time="1" translation="0.012 3.563 2.185" scale="1.029 1 1.012"/>
            </node>			
			<node index="0>9|11">
                <key time="0" translation="0.012 1.332 -1.386" scale="0.378 0.1 0.55"/>
                <key time="0.308" translation="0.012 2.012 -2.663" scale="0.372 0.25 0.78"/>
                <key time="0.583" translation="0.012 2.635 -3.834" scale="1 0.5 1.025"/>
                <key time="0.625" translation="0.011 2.73 -3.847" scale="1.005 0.517 1"/>
                <key time="0.833" translation="0.005 3.202 -3.915" scale="1.03 0.6 1"/>
                <key time="1" translation="0 3.58 -3.867" scale="1.007 1 1"/>
            </node>
        </fillPlane>		
		<fillPlane type="chaff">
            <node index="0>9|12">
                <key time="0.7" translation="-0.053 2.917 2.195" scale="1 0.025 1"/>
                <key time="0.716" translation="-0.053 2.931 2.195" scale="1 0.025 1"/>
                <key time="1" translation="-0.053 3.563 2.195" scale="1 1.05 1"/>				
            </node>
            <node index="0>9|13">
                <key time="0.358" translation="0 -0.332 -0.495" scale="1 1 1"/>
                <key time="0.366" translation="0 -0.314 -0.469" scale="1 1 1"/>
                <key time="0.516" translation="0 0.015 -0.017" scale="1 1 1"/>				
            </node>            
			<node index="0>9|14">
                <key time="0" translation="0.011 1.332 0.084" scale="0.355 0.15 0.19"/>	
                <key time="0.125" translation="0.01 1.595 0.445" scale="0.521 0.187 0.225"/>
                <key time="0.325" translation="0.009 2.045 1.064" scale="0.729 0.25 0.533"/>
                <key time="0.583" translation="0.007 2.626 1.864" scale="1.02 0.5 0.905"/>
                <key time="0.625" translation="0.007 2.719 1.993" scale="1.048 0.517 0.965"/>
                <key time="0.708" translation="0.011 2.907 2.185" scale="1.046 0.55 1.012"/>
                <key time="0.833" translation="0.012 3.188 2.185" scale="1.037 0.6 1.012"/>
                <key time="0.958" translation="0.012 3.469 2.185" scale="1.029 1 1.012"/>
                <key time="1" translation="0.012 3.563 2.185" scale="1.029 1 1.012"/>
            </node>			
			<node index="0>9|15">
                <key time="0" translation="0.012 1.332 -1.386" scale="0.378 0.1 0.55"/>
                <key time="0.308" translation="0.012 2.012 -2.663" scale="0.372 0.25 0.78"/>
                <key time="0.583" translation="0.012 2.635 -3.834" scale="1 0.5 1.025"/>
                <key time="0.625" translation="0.011 2.73 -3.847" scale="1.005 0.517 1"/>
                <key time="0.833" translation="0.005 3.202 -3.915" scale="1.03 0.6 1"/>
                <key time="1" translation="0 3.58 -3.867" scale="1.007 1 1"/>
            </node>
        </fillPlane>
    </fillPlanes>

    <cylinderedHydraulicSound 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" />
    <attacherJoint index="0>2" jointType="trailerLow"/>

    <fillRootNode index="0>" />
    <fillMassNode index="0>" />
	<allowTipDischarge value="false" />
	<exactFillRootNode index="0>12" />

	<pipe raycastNodeIndex="0>7|0|4" foldMinLimit="0" foldMaxLimit="0" unloadingCapacity="800" />

    <pipeParticleSystems extraDistance="2" >
        <pipeParticleSystem type="wheat"  node="0>7|0|5" rotation="0 0 0" file="data/vehicles/particleSystems/wheatParticleSystem.i3d" />
        <pipeParticleSystem type="barley" node="0>7|0|5" rotation="0 0 0" file="data/vehicles/particleSystems/wheatParticleSystem.i3d" />
        <pipeParticleSystem type="rape"   node="0>7|0|5" rotation="0 0 0" file="data/vehicles/particleSystems/rapeParticleSystem.i3d" />
        <pipeParticleSystem type="maize"  node="0>7|0|5" rotation="0 0 0" file="data/vehicles/particleSystems/wheatParticleSystem.i3d" />
    </pipeParticleSystems>

    <movingTools>
        <!-- support -->
        <movingTool index="0>3" componentJointIndex="1" anchorActor="0"/>
		<movingTool index="0>5">
			<dependentPart index="0>6" />
		</movingTool>

		<movingTool index="0>7|0" componentJointIndex="0" anchorActor="0">
			<dependentPart index="0>8|0" />
		</movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>6" referencePoint="0>5|0" referenceFrame="0>5|0">
            <translatingPart index="0>6|0" />
        </movingPart>
		<movingPart index="0>8|0" referencePoint="0>7|0|1" referenceFrame="0>8">
            <translatingPart index="0>8|0|0" />
        </movingPart>
    </movingParts>

	<turnedOnRotationNodes>
        <turnedOnRotationNode index="0>7|0|0|0" rotSpeed="-1200"/>
    </turnedOnRotationNodes>

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
			<part node="0>1|1" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>13" startTime="0" endTime="0.05" visibility="true" />
			<part node="0>1|1" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>13" startTime="0.05" endTime="0.1" visibility="false" />
			<part node="0>5" startTime="0" endTime="0.5" startRot="40 0 0" endRot="0 0 0" />
            <part node="0>3" startTime="0" endTime="0.5" startTrans="0.012 0.982 1.859" endTrans="0.012 0.38 1.859" />
        </animation>

		<animation name="foldingPipe">
			<part node="0>7|0" startTime="0" endTime="5" startRot="0 -1 0" endRot="0 -142.7 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

	<foldingParts startMoveDirection="1">
        <foldingPart animationName="foldingPipe" speedScale="1" />
    </foldingParts>

	<powerTakeoffInput index="0>4" rotSpeed="0" filename="data/vehicles/steerable/powerTakeoff.i3d" attachOffset="0 0 0"/>

    <components count="3">
        <component1 centerOfMass="0 0 0" solverIterationCount="15" />
        <component2 centerOfMass="0 0 0" solverIterationCount="15" />
		<component3 centerOfMass="0 0 0" solverIterationCount="15" />
        <joint component1="0" component2="1" index="0>7|0" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="2" index="0>3" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>

    <schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
