<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableCombineCutterFruitPreparer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
   <storeData>
        <name>Miac C200 Cebola</name>
		
        <specs>
            <neededPower>35</neededPower>
            <workingWidth>2.0</workingWidth>
        </specs>
		
        <functions>
            <function>$l10n_function_harvestingPotatoWithoutPreparer</function>
        </functions>
		
        <image>store_Arrancador.png</image>
		
        <price>6200</price>
		
        <lifetime>500</lifetime>
		
        <rotation>0</rotation>
		
        <brand>MIAC</brand>
		
        <category>FSModding</category>
		
	<shopTranslationOffset>0 0 0</shopTranslationOffset>	
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_harvester</typeDesc>
        <filename>ArrancadorAmendoim.i3d</filename>
        <size width="2.0" length="4.5"/>
        <speedLimit value="8"/>
        <components>           
			<component centerOfMass="0 0.1 0.05" solverIterationCount="20" mass="730"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>
	
	 <wheels>
        <wheelConfigurations>
            <wheelConfiguration>
                <wheels autoRotateBackSpeed="2.0">
				
                    <wheel>
                        <physics restLoad="0.2" repr="0>1|1|0|0" radius="0.3" width="0.1" forcePointRatio="0.35" initialCompression="20" suspTravel="0.05" spring="70" damper="0" frictionScale="1" yOffset="0.01"/>
                    </wheel>    
					<wheel>
                        <physics restLoad="0.2" repr="0>1|1|1|0" radius="0.3" width="0.1" forcePointRatio="0.35" initialCompression="20" suspTravel="0.05" spring="70" damper="0" frictionScale="1" yOffset="0.01"/>
                    </wheel>    
      
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>1|0" jointType="implement" topReferenceNode="0>1|0|0" allowsLowering="true">
                <distanceToGround lower="0.65" upper="2"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
		<!-- <brakeForce>1</brakeForce> -->
        <support animationName="moveSupport" />
    </attachable>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>2|0"  length="1.2" diameter="0.02" straighteningFactor="1.5"/>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>2|1" length="1.2" diameter="0.02" straighteningFactor="1.5"/>
    </connectionHoses>
	
	
	<animations>
        <animation name="moveSupport">
            <part node="0>3|0" startTime="0" endTime="0.5" endTrans="0 0 0" startTrans="0 0.50 0" />
        </animation>
    </animations>

    <powerConsumer forceNode="0>" maxForce="5" neededMaxPtoPower="30"/>
    <washable dirtDuration="30" washDuration="1" workMultiplier="10"/>

	<groundReferenceNodes>
        <groundReferenceNode node="0>1|2|4" threshold="0.1" forceFactor="1" depthNode="0>1|2|4" />
    </groundReferenceNodes>
	
	<workAreas>
			<workArea type="cutter" functionName="processCutterArea">
            <area startNode="0>1|2|0" widthNode="0>1|2|1" heightNode="0>1|2|2"/>
            <groundReferenceNode index="1" />
        </workArea>
		<workArea type="fruitPreparer" functionName="processFruitPreparerArea" disableBackwards="false" >
            <area startNode="0>1|2|0" widthNode="0>1|2|1" heightNode="0>1|2|2" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>
	
	<fruitPreparer fruitType="onion02">
        <!-- <sounds>
            <work template="DEFOLIATOR_01" linkNode="0>" />
        </sounds> -->
    </fruitPreparer>
	
	<combine>	
	
		<fillEffect>		
           <effectNode effectNode="0>1|5"  effectClass="MorphPositionEffect" materialType="belt_cropDirt" delay="0.0" fadeTime="0.5" scrollLength="12" scrollSpeed="0.4"/>			
           <effectNode effectNode="0>1|17"  effectClass="MorphPositionEffect" materialType="belt_cropClean" delay="0.0" fadeTime="0.5" scrollLength="12" scrollSpeed="0.4"/>			
           <effectNode effectNode="0>1|18"  effectClass="MorphPositionEffect" materialType="belt_cropDirt" delay="0.0" fadeTime="0.5" scrollLength="12" scrollSpeed="0.4"/>	
           <effectNode effectNode="0>1|7"  effectClass="MorphPositionEffect" materialType="belt_cropClean" delay="0.0" fadeTime="0.5" scrollLength="12" scrollSpeed="0.4"/>	
        </fillEffect>
		 
	    <animationNodes>
	        <animationNode node="0>1|3|0" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
            <animationNode node="0>1|4|0" rotSpeed="250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
			<animationNode node="0>1|13|0" class="ScrollingAnimation" scrollSpeed="0.2" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="2" turnOffFadeTime="2"/>
			<animationNode node="0>1|13|1" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
			<animationNode node="0>1|13|2" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
			<animationNode node="0>1|13|3" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
			<animationNode node="0>1|13|4" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
			<animationNode node="0>1|13|5" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
			<animationNode node="0>1|13|6" rotSpeed="-250" rotAxis="1" turnOnFadeTime="1.5" turnOffFadeTime="2.5" />
        </animationNodes>
		

     </combine>
	 
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnInfoHud="false" showCapacityInShop="false" fillTypes="onion02"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<dischargeable>
        <dischargeNode node="0>1|9" fillUnitIndex="1" stopDischargeOnEmpty="false">
            <info width="0.1" length="0.1"/>
            <raycast maxDistance="2"/>
        </dischargeNode>
    </dischargeable>
	
    <cutter allowCuttingWhileRaised="false" allowsForageGrowthState="true" fruitTypeConverter="Picker" fruitTypes="onion02">
       <sounds>
            <cut template="cropCutting" pitchScale="0.5" volumeScale="1.1" linkNode="0>"/>
        </sounds>
    </cutter>
	
    <pipe>
        <unloadingTriggers>
            <unloadingTrigger node="0>1|10"/>
        </unloadingTriggers>
        <dischargeNode index="1" />
        <states num="1" unloading="1"/>
    </pipe>
	
	
	
	<speedRotatingParts>
	    <speedRotatingPart node="0>1|1|0" radius="0.3" groundReferenceNodeIndex="1" /> 
		<speedRotatingPart node="0>1|1|1" radius="0.3" groundReferenceNodeIndex="1" /> 
		<speedRotatingPart node="0>1|14|0" radius="0.2" groundReferenceNodeIndex="1"/>
		<speedRotatingPart node="0>1|14|1" radius="0.2" groundReferenceNodeIndex="1"/>
		<speedRotatingPart node="0>1|14|2" radius="0.2" groundReferenceNodeIndex="1"/>
    </speedRotatingParts>
	
	 <turnOnVehicle turnOffIfNotAllowed="true" turnedOnByAttacherVehicle="false">
        <sounds>
            <start template="harvesterToolRopaStart" volumeScale="1.3"/>
            <work template="harvesterToolRopaWork"   volumeScale="1.3"/>
            <stop template="harvesterToolRopaStop"   volumeScale="1.3"/>
        </sounds>
    </turnOnVehicle>
	
	<ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="0>1|11|0" rightNode="0>1|11|1" backNode="0>1|11|2"/>
        <allowTurnBackward value="true"/>
		<agentAttachment width="5.9" height="2.5" length="3.9" lengthOffset="-0.4"/>
    </ai>

</vehicle>