﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableCombine">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Grimme Rootster 604</en>
        <de>Grimme Rootster 604</de>
    </name>
	<typeDesc>$l10n_TypeDesc_Harvester</typeDesc>
    <filename>data/vehicles/tools/grimme/grimmeRootster604.i3d</filename>

    <size width="4.8" widthOffset="-0.2" length="11" lengthOffset="0.4" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.682" deltaY="0" suspTravel="0.08" spring="20" damper="5" mass="0.15" lateralStiffness="1" />
        <wheel driveMode="0" repr="1" radius="0.682" deltaY="0" suspTravel="0.08" spring="20" damper="5" mass="0.15" lateralStiffness="1" />
    </wheels>
    <brakeForce>0.5</brakeForce>
	<downForce>4</downForce>
	<massPerFillLevel value="0.00005" />

    <grainTankCapacity>6000</grainTankCapacity>
    <grainTankUnloadingCapacity>350</grainTankUnloadingCapacity>
    <grainTankFruitTypes fruitTypes="sugarBeet" />

    <!-- Cutter fruit type -->
    <fruitTypes fruitTypes="sugarBeet"/>
    <cutterMovingDirection>1</cutterMovingDirection>

    <cutterSpeedLimit forceLow="true" low="20" normal="20" />

	<lightCoronas>
		<lightCorona index="0>8|0" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>8|2" />
	</brakeLights>

    <grainTankPlanes rotationDegrees="true">
        <grainTankPlane type="sugarBeet">
            <node index="0>16|0">
				<key time="0" translation="-0.458 0.447 -0.927" rotation="0 0 0"/>
                <key time="0.375" translation="-0.838 0.93 -1.149" rotation="0 0 0"/>
                <key time="1" translation="-1.288 1.629 -1.242" rotation="0 0 0"/>
            </node>
			<node index="0>16|1">
				<key time="0" translation="0.16 0.17 -0.005" rotation="0 0 0"/>
				<key time="0.375" translation="0.529 0.781 0.616" rotation="0 0 0"/>
                <key time="1" translation="0.529 1.629 0.616" rotation="0 0 0"/>
            </node>
			<node index="0>16|2">
				<key time="0" translation="-0.424 0.407 -0.008" rotation="0 0 0"/>
				<key time="0.375" translation="-0.788 0.781 0.097" rotation="0 0 0"/>
                <key time="1" translation="-1.289 1.629 0.467" rotation="0 0 0"/>
            </node>
			<node index="0>16|3">
				<key time="0" translation="0.156 0.171 -1.016" rotation="0 0 0"/>
				<key time="0.375" translation="0.513 0.781 -1.556" rotation="0 0 0"/>
                <key time="1" translation="0.529 1.629 -1.586" rotation="0 0 0"/>
            </node>
			<node index="0>16|4">
				<key time="0" translation="-0.372 0.105 -0.952" rotation="0 0 0"/>
				<key time="0.375" translation="-1.292 0.785 -0.956" rotation="0 0 0"/>
                <key time="1" translation="-1.747 0.997 -0.914" rotation="0 0 0"/>
            </node>
			<node index="0>16|5">
				<key time="0" translation="-0.373 0.106 0.044" rotation="0 0 0"/>
				<key time="0.375" translation="-1.29 0.784 0" rotation="0 0 0"/>
                <key time="1" translation="-1.745 0.993 0" rotation="0 0 0"/>
            </node>
			<node index="0>16|6">
				<key time="0" translation="0.075 0.147 0.019" rotation="0 0 0"/>
				<key time="0.375" translation="0.483 0.759 0.6" rotation="0 0 0"/>
                <key time="1" translation="0.483 0.759 0.6" rotation="0 0 0"/>
            </node>
			<node index="0>16|7">
				<key time="0" translation="-0.027 0.038 -0.895" rotation="0 0 0"/>
				<key time="0.375" translation="0.485 0.74 -1.54" rotation="0 0 0"/>
                <key time="1" translation="0.492 0.759 -1.555" rotation="0 0 0"/>
            </node>
            <node index="0>17">
            </node>
        </grainTankPlane>
    </grainTankPlanes>

    <threshingSound file="data/vehicles/tools/fruitPreparer.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1"  radius="50" innerRadius="25" />

    <skinnedNodes>
        <skinnedNode index="0>17" />
    </skinnedNodes>

    <combineThreshingScrollers>
        <combineThreshingScroller index="0>7|0" scrollSpeed="-2.2" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" />
        <combineThreshingScroller index="0>7|1" scrollSpeed="1.3" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" />
    </combineThreshingScrollers>

    <combineThreshingFillScrollers>
        <!-- sugarBeet pickup dirt+sugarBeet-->
        <combineThreshingFillScroller type="sugarBeet" index="0>14|0" scrollSpeed="-0.55" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
        <combineThreshingFillScroller type="sugarBeet" index="0>14|1" scrollSpeed="-0.55" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
        <combineThreshingFillScroller type="sugarBeet" index="0>14|2" scrollSpeed="-0.55" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
        <combineThreshingFillScroller type="sugarBeet" index="0>14|3" scrollSpeed="-0.55" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
        <combineThreshingFillScroller type="sugarBeet" index="0>14|4" scrollSpeed="-0.55" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
    </combineThreshingFillScrollers>

    <pipeScrollers>
        <pipeScroller type="sugarBeet" index="0>5|1" scrollSpeed="1" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" />
        <pipeScroller type="sugarBeet" index="0>5|3" scrollSpeed="1" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
        <pipeScroller type="sugarBeet" index="0>7|2" scrollSpeed="1" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" />
        <pipeScroller type="sugarBeet" index="0>14|5" scrollSpeed="1" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="true" />
    </pipeScrollers>

    <pipeParticleSystems>
        <pipeParticleSystem type="sugarBeet" node="0>5|2" rotation="0 -90 0" file="data/vehicles/particleSystems/maxtron620FillParticleSystem.i3d" />
    </pipeParticleSystems>

    <pipe numStates="2" unloadingStates="2" raycastNodeIndex="0>5|2" raycastDistance="6" foldMinLimit="0" foldMaxLimit="1">
        <node index="0>5" rotationSpeeds="0 0 25">
            <state1 rotation="0 0 0"/>
            <state2 rotation="0 0 -122"/>
        </node>
	</pipe>

    <combineThreshingFillParticleSystems>
        <combineThreshingFillParticleSystem type="sugarBeet" node="0>11|0" rotation="0 0 0" file="data/vehicles/particleSystems/maxtron620FillParticleSystem.i3d" />
    </combineThreshingFillParticleSystems>

	<rolls>
		<roll index="0>9|0" speed="-0.009" />
		<roll index="0>9|1" speed="0.009" />
		<roll index="0>9|2" speed="-0.009" />
		<roll index="0>13|5" speed="-0.009" />
        <roll index="0>18" speed="0.004" />
        <roll index="0>19" speed="-0.004" />
	</rolls>

    <cutterSpeedRotatingParts>
		<cutterSpeedRotatingPart index="0>13|0" radius="-0.07"/>
		<cutterSpeedRotatingPart index="0>13|1" radius="-0.07"/>
		<cutterSpeedRotatingPart index="0>13|2" radius="-0.07"/>
		<cutterSpeedRotatingPart index="0>13|3" radius="-0.07"/>
		<cutterSpeedRotatingPart index="0>13|4" radius="-0.07"/>
		<cutterSpeedRotatingPart index="0>15|0|0" radius="0.34"/>
		<cutterSpeedRotatingPart index="0>15|1|0" radius="0.34"/>
		<cutterSpeedRotatingPart index="0>15|2|0" radius="0.34"/>
		<cutterSpeedRotatingPart index="0>15|3|0" radius="0.34"/>
		<cutterSpeedRotatingPart index="0>15|4|0" radius="0.34"/>
		<cutterSpeedRotatingPart index="0>15|5|0" radius="0.34"/>
		<cutterSpeedRotatingPart index="0>15|6|0" radius="-0.34"/>
		<cutterSpeedRotatingPart index="0>15|7|0" radius="-0.34"/>
		<cutterSpeedRotatingPart index="0>15|8|0" radius="-0.34"/>
		<cutterSpeedRotatingPart index="0>15|9|0" radius="-0.34"/>
		<cutterSpeedRotatingPart index="0>15|10|0" radius="-0.34"/>
		<cutterSpeedRotatingPart index="0>15|11|0" radius="-0.34"/>
    </cutterSpeedRotatingParts>

	<powerTakeoffInput index="0>4" rotSpeed="0" />

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="0>10|0" widthIndex="0>10|1" heightIndex="0>10|2" losing="false" foldMinLimit="0" foldMaxLimit="0.1"/>
    </cuttingAreas>

    <aiLeftMarker index="0>10|3" />
    <aiRightMarker index="0>10|4" />

    <attacherJoint index="0>2|1|0" jointType="trailerLow" rotLimitScale="1.2 1.2 1.2"/>

    <foldingParts foldMiddleAnimTime="0.3" startMoveDirection="1">
        <foldingPart animationName="folding" speedScale="1" />
    </foldingParts>

    <threshingFold foldMinLimit="0" foldMaxLimit="0.301" foldMinGrainTankFillLevel="0" foldMaxGrainTankFillLevel="9999999" allowFoldWhileUnloading="true" allowFoldWhileThreshing="false"/>

    <movingTools>
        <!-- support -->
        <movingTool index="0>3" componentJointIndex="0" anchorActor="0"></movingTool>

        <movingTool index="0>5">
			<dependentPart index="0>6" />
        </movingTool>

		<movingTool index="0>2" inputAttacherJoint="true" componentJointIndex="1" anchorActor="0">
			<dependentPart index="0>21|1" />
        </movingTool>
		<movingTool index="0>2|1" inputAttacherJoint="true" componentJointIndex="1" anchorActor="0">
			<dependentPart index="0>2|2" />
        </movingTool>
	</movingTools>

    <movingParts>
		<movingPart index="0>6" referencePoint="0>5|0" referenceFrame="0>6" invertZ="false" isActiveDirty="true">
            <translatingPart index="0>6|0" />
        </movingPart>

		<movingPart index="0>21|1" referencePoint="0>2|0" referenceFrame="0>2|0">
            <translatingPart index="0>21|1|0" />
        </movingPart>
		<movingPart index="0>2|2" referencePoint="0>2|1|2" referenceFrame="0>">
            <translatingPart index="0>2|2|0" />
        </movingPart>
    </movingParts>

    <animations>
		<animation name="folding">
			<part node="0>2" startTime="0.0" endTime="1.5" startRot="0 0 0" endRot="10 0 0" />
			<part node="0>2|1" startTime="1.5" endTime="5" startRot="0 30 0" endRot="0 0 0" />
			<part node="0>2|1|0" startTime="1.5" endTime="5" startRot="0 60 0" endRot="0 90 0" />
		</animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>3" startTime="0" duration="0.2" startTrans="0 0.5 2.21096" endTrans="0 0.0875 2.211" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <components count="3">
        <component1 centerOfMass="0 0 -1.2" solverIterationCount="30" />
        <component2 centerOfMass="0 0 0" solverIterationCount="15" />
		<component3 centerOfMass="0 0 0" solverIterationCount="30" />
        <joint component1="0" component2="1" index="0>3" rotLimit="0 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="2" index="0>2|1|1" 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>
