<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="attachableCombineCutterFruitPreparer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>Kombajn ANNA Z-644</en>
			<de>Kombajn ANNA Z-644</de>
		</name>
        <specs>
            <neededPower>30</neededPower>
            <workingWidth>0.75</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_harvestingPotatoWithoutPreparer</function>
        </functions>
        <image>store_z644.dds</image>
        <price>25000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Agromet</brand>
        <category>potatoHarvesting</category>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_harvester</typeDesc>
        <filename>Kombajn_Anna.i3d</filename>
        <size width="2.5" length="7"/>
        <speedLimit value="10"/>
		<components>
            <component centerOfMass="0.37 0.7 1.675" solverIterationCount="10" mass="1800"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>
	
	
   <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.7" differentialIndex="1" ackermannSteeringIndex="1">
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/260_70R15_3.xml" isLeft="true" >
                        <physics rotSpeed="0" restLoad="2.1" repr="0>0|0|1|0" driveNode="0>0|0|1" initialCompression="20" suspTravel="0.1" spring="22" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/AW305/260_70R15_3.xml" isLeft="true" >
                        <physics rotSpeed="0" restLoad="2.1" repr="0>0|0|0|0" driveNode="0>0|0|0" initialCompression="20" suspTravel="0.1" spring="22" damper="50"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="100" rotMax="45" rotCenterWheel1="1" rotCenterWheel2="2"/>
        </ackermannSteeringConfigurations>
    </wheels>
	
	<rimColorConfigurations useDefaultColors="false">
		<rimColorConfiguration name="Biały" color="0.75 0.82 0.7 1" />
		<rimColorConfiguration name="Żółty" color="0.8 0.5 0.05 1" />
		<rimColorConfiguration name="Czerwony" color="FENDT_RED1" />	
		<rimColorConfiguration name="Szary" color="0.3 0.4 0.5 1" />		
	</rimColorConfigurations> 
	
    <speedRotatingParts>
        <speedRotatingPart node="0>0|3|0|1" radius="0.296" wheelIndex="1" foldMinLimit="0" foldMaxLimit="0.01"/>
        <speedRotatingPart node="0>0|3|0|2" radius="0.322" wheelIndex="1" foldMinLimit="0" foldMaxLimit="0.01"/>
    </speedRotatingParts>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|1|1" jointType="trailerLow" attacherHeight="-0.9"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce>0.1</brakeForce>
    </attachable>
	
    <powerTakeOffs>
        <input inputNode="0>8" inputAttacherJointIndices="1" aboveAttacher="true"/>
    </powerTakeOffs>
	
    <powerConsumer ptoRpm="450" neededMaxPtoPower="10"/>
	
    <fruitPreparer fruitType="potato"/>
	
    <lights>
        <realLights>
            <high>
                <light node="0>15" lightTypes="0"/>
            </high>
        </realLights>
		<defaultLights>
            <defaultLight shaderNode="0>15|0|0" lightTypes="0" intensity="1"/>
			<defaultLight shaderNode="0>15|0|1" lightTypes="0" intensity="1"/>		   
		</defaultLights>
		<brakeLights>
            <brakeLight shaderNode="0>15|0|0" intensity="1.5"/>
            <brakeLight shaderNode="0>15|0|1" intensity="1.5"/>
		</brakeLights>
		<turnLights>
            <turnLightLeft  shaderNode="0>15|0|2" intensity="1"/>           
            <turnLightRight shaderNode="0>15|0|3" intensity="1"/>
		</turnLights>
    </lights>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric"  node="0>11|0"  length="1.8" diameter="0.008" straighteningFactor="0.5">
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>11|1"  length="1.6" diameter="0.015">
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>11|2" length="1.6" diameter="0.015">
        </hose>
    </connectionHoses>

	<groundReferenceNodes>
        <groundReferenceNode node="0>15" threshold="0.05" />
    </groundReferenceNodes>

	<workAreas>
        <workArea type="cutter" functionName="processCutterArea">
            <area startNode="0>1" widthNode="0>2" heightNode="0>3" />
            <folding minLimit="0" maxLimit="0.1"/>
            <groundReferenceNode index="1" />
			</workArea>
		<workArea type="fruitPreparer" functionName="processFruitPreparerArea" >
            <area startNode="0>1" widthNode="0>2" heightNode="0>3" />
			<folding minLimit="0" maxLimit="0.1"/>
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>
	
	
	
    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" foldMiddleAnimTime="0.2" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.2" loadMovingToolStatesMaxLimit="-1" loadMovingToolStatesMinLimit="-1">
                    <foldingPart animationName="folding" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
    <animations>
        <animation name="moveSupport">
            <part node="0>0|1|3" startTime="0" duration="1" startTrans="0.076 -0.344 0.501" endTrans="0.076 -0.6 0.501"/>
            <part node="0>0|1|2" startTime="0" duration="1" startRot="0 980 0" endRot="0 0 0"/>
            <!-- <part node="0>0|6" startTime="0" endTime="0.01" visibility="true"/> -->
            <!-- <part node="0>0|6" startTime="0.01" endTime="0.02" visibility="false"/> -->
            <part node="0>8" startTime="0" endTime="0.01" visibility="true"/>
            <part node="0>8" startTime="0.01" endTime="0.02" visibility="false"/>
        </animation>
        <animation name="folding">
            <part node="0>0|3|0" startTime="0" endTime="1.5" startRot="8 0 0" endRot="-2 0 0"/>
            <part node="0>0|1" startTime="1.5" endTime="4" startRot="0 10 0" endRot="0 0 0"/>
            <part node="0>0|1|1" startTime="1.5" endTime="4" startRot="0 80 0" endRot="0 90 0"/>
            <part node="0>0|4|0" startTime="1.5" endTime="4" startRot="0 0 -1980" endRot="0 0 0"/>
        </animation>
    </animations>
	
    <cylindered>
        <movingTools>
            <movingTool node="0>0|1" playSound="true">
                <inputAttacherJoint value="true"/>
            </movingTool>
            <movingTool node="0>0|2|6" playSound="true"/>
        </movingTools>
        <movingParts>
            <movingPart node="0>0|1|5" referencePoint="0>0|5" referenceFrame="0>0|5" isActiveDirty="true" playSound="false" invertZ="true"/>
            <movingPart node="0>0|4" referencePoint="0>0|1|6" referenceFrame="0>0|1|6" isActiveDirty="true" playSound="false" invertZ="true"/>
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>
    
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="potato" capacity="5000"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|2|9" fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>0|2|8" width="1.0" length="0.7"/>
            </unloadInfo>
        </unloadInfos>
        <loadInfos>
            <loadInfo>
                <node node="0>0|2|7" width="0.45" length="0.2"/>
            </loadInfo>
        </loadInfos>
        <dischargeInfos>
            <dischargeInfo>
                <node node="0>0|2|6|3" width="1.0" length="0.4"/>
            </dischargeInfo>
        </dischargeInfos>
    </fillVolume>
	
    <dischargeable>
		 <dischargeNode node="0>7" emptySpeed="250" fillUnitIndex="1" maxDistance="6">
            <info width="1.0" length="0.4"/>
            <raycast maxDistance="6"/>
            <effects>
			    <effectNode effectClass="MorphPositionEffect" effectNode="0>0|2|6|5|0" materialType="belt" delay="0" fadeTime="1.5" speed="0.9" scrollLength="4" scrollSpeed="1.2"/>
                <effectNode effectClass="MorphPositionEffect" effectNode="0>0|2|6|6|0" materialType="belt" delay="0" fadeTime="1.5" speed="0.9" scrollLength="4" scrollSpeed="1.2"/>
			    <effectNode effectClass="MorphPositionEffect" effectNode="0>0|2|15|0" materialType="belt" delay="0" fadeTime="1.5" speed="0.9" scrollLength="4" scrollSpeed="1.2"/>
                <effectNode effectClass="MorphPositionEffect" effectNode="0>0|2|15|2" materialType="belt" delay="0" fadeTime="1.5" speed="0.9" scrollLength="4" scrollSpeed="1.2"/>
                <effectNode effectClass="MorphPositionEffect" effectNode="0>0|2|15|3" materialType="belt" delay="0" fadeTime="1.5" speed="0.9" scrollLength="4" scrollSpeed="1.2"/>
				<effectNode effectNode="0>0|2|6|7|0" effectClass="ParticleEffect" emitCountScale="16" lifespan="0.11" delay="1.4"/>
                <effectNode effectNode="0>0|2|6|7|1" effectClass="ParticleEffect" emitCountScale="16" lifespan="0.11" delay="1.4"/>
			</effects>
        </dischargeNode>
    </dischargeable>
	
    <pipe foldMinTime="0" foldMaxTime="0.31" foldMinState="1" foldMaxState="1">
        <unloadingTriggers>
            <unloadingTrigger node="0>12"/>
        </unloadingTriggers>
		<pipeNodes>
            <pipeNode node="0>0|2|6" rotationSpeeds="0 0 30">
                <state1 rotation="0 0 12"/>
                <state2 rotation="0 0 45"/>
            </pipeNode>
        </pipeNodes>
        <states num="2" unloading="2"/>
        <animationNodes>
            <animationNode node="0>0|2|6|1" class="ScrollingAnimation" type="potato" scrollSpeed="-1.3" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>
    </pipe>
	
    <combine allowThreshingDuringRain="true">
        <swath available="false"/>
        <chopper available="false"/>
        <processing toggleTime="0"/>
		<fillEffect>
            <effectNode effectNode="0>0|2|10|0" effectClass="MorphPositionEffect" materialType="belt" delay="0" fadeTime="4" scrollLength="12" scrollSpeed="0.8"/>
            <effectNode effectNode="0>0|2|28|0" effectClass="MorphPositionEffect" materialType="belt" delay="0" fadeTime="4" scrollLength="12" scrollSpeed="0.4"/>
			<effectNode effectNode="0>0|2|27|0" effectClass="MorphPositionEffect" materialType="belt" delay="0" fadeTime="4" scrollLength="12" scrollSpeed="0.8"/>
            <effectNode effectNode="0>0|2|21"   effectClass="ParticleEffect"      particleType="CLEANING_SOIL"/>
            <effectNode effectNode="0>0|2|22"   effectClass="ParticleEffect"      particleType="CLEANING_DUST"/>
		</fillEffect>
        <animationNodes>
            <animationNode node="0>0|2|18"   class="ScrollingAnimation" scrollSpeed="-0.5"  scrollLength="2" shaderParameterName="offsetUV" shaderParameterComponent="6" toggleVisibility="true" turnOnFadeTime="1" turnOffFadeTime="1"/>
            <animationNode node="0>0|2|19"   class="ScrollingAnimation" scrollSpeed="-0.3"  scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="6" toggleVisibility="true" turnOnFadeTime="1" turnOffFadeTime="1"/>
            <animationNode node="0>0|2|4|0"  class="ScrollingAnimation" scrollSpeed="-1.3"  scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|4|1"  class="ScrollingAnimation" scrollSpeed="-1.3"  scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|4|2"  class="ScrollingAnimation" scrollSpeed="1.3"   scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|4|4"  class="ScrollingAnimation" scrollSpeed="-1.3"  scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|3|0|3"  class="ScrollingAnimation" scrollSpeed="1.3"   scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|12"   class="ScrollingAnimation" scrollSpeed="-0.35" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|17|0" class="ScrollingAnimation" scrollSpeed="0.3"   scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
        </animationNodes>
        <sounds>
            <work template="DEFOLIATOR_01" linkNode="0>" />
        </sounds>
    </combine>
	
	<fruitPreparer fruitType="potato">
	     <sounds>
            <work template="DEFOLIATOR_01" linkNode="0>" />
        </sounds>
    </fruitPreparer>
	
    <cutter fruitTypes="potato">
        <animationNodes>
            <animationNode node="0>0|2|2|10" rotSpeed="-75"   rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|0" rotSpeed="-1000"  rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|3" rotSpeed="-1000"  rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|4" rotSpeed="-1000"  rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|5" rotSpeed="500"    rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|7" rotSpeed="-1000"  rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|1" rotSpeed="-1000"  rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|2" rotSpeed="1000"   rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|11" rotSpeed="1000"  rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|12" rotSpeed="1000"  rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|13" rotSpeed="1000"  rotAxis="3" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|14" rotSpeed="-1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|15" rotSpeed="-1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|16" rotSpeed="-1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|17" rotSpeed="-1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|2|18" rotSpeed="-1000" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|17|1" rotSpeed="500"   rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
            <animationNode node="0>0|2|17|2" rotSpeed="500"   rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2"/>
        </animationNodes>
        <fillEffect>
            <effectNode effectNode="0>0|2|16|0" effectClass="MorphPositionEffect" materialType="belt" delay="0" fadeTime="2" scrollLength="2" scrollSpeed="0.8"/>
        </fillEffect>
	</cutter>
	
    <workParticles>
        <particle>
            <node node="0>0|2|11|0" refNodeIndex="1" particleType="PREPARE_FRUIT"   fillType="potato" emitCountScale="4"/>
            <node node="0>0|2|20"   refNodeIndex="1" particleType="SOIL_HARVESTING" fillType="potato" emitCountScale="4"/>
        </particle>
    </workParticles>
	
	<turnOnVehicle turnOffIfNotAllowed="true"/>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="0>4" rightNode="0>5" backNode="0>6"/>
        <sizeMarkers leftNode="0>4" rightNode="0>5" backNode="0>6"/>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation rotationJointNode="0>0|1|1" wheelIndices="0 1"/>
        <toolReverserDirectionNode node="0>16"/>
    </ai>
	
	
</vehicle>
