<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cutter">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>case IH 6.70m</name>
        <specs>
            <workingWidth>6.70</workingWidth>
            <combination>2166 Axial-Flow</combination>
			<combination>rallonge_colza_1030_6.70m</combination>
        </specs>
        <functions>
            <function>$l10n_function_cutter</function>
        </functions>
        <image>store_caseIH1030Cutter670.dds</image>
        <price>35000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CASEIH</brand>
        <category>cutters</category>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>caseIH_1030_6.70m.i3d</filename>
        <size width="6.5" length="2.5"/>
        <speedLimit value="8"/>
        <components>
            <component centerOfMass="0 0.5 0" mass="1000"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0" jointType="cutter" upperRotationOffset="0" forceSelectionOnAttach="false">
				<distanceToGround lower="1.08" upper="1.84"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>
	
	<attacherJoints comboDuration="2">
        <attacherJointConfigurations>
            <attacherJointConfiguration>
                <attacherJoint node="0>10" jointType="cutter" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="0 0 0">
                    <schema position="1 0" rotation="0" invertX="false" />
                    <attachSound template="TRUCK_ATTACH_01" linkNode="0>" />
				</attacherJoint>
            </attacherJointConfiguration>
        </attacherJointConfigurations>
	
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>" />
        </sounds>
    </attacherJoints>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>11|0" length="1.5" diameter="0.01" straighteningFactor="1.5">
            <objectChange node="0>11|0|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>11|1" length="1.5" diameter="0.01" straighteningFactor="1.5">
            <objectChange node="0>11|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>11|2" length="1.5" diameter="0.01" straighteningFactor="1.5">
            <objectChange node="0>11|2|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="electric" node="0>11|3" length="1.5" diameter="0.008" >
            <objectChange node="0>11|3|0" visibilityActive="false" visibilityInactive="true" />
        </hose>
    </connectionHoses>

    <powerTakeOffs>
        <input inputNode="0>1" inputAttacherJointIndices="1" aboveAttacher="true" detachNode="0>1|0" ptoName="LEFT_PTO"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="540" neededMaxPtoPower="50"/>

    <groundReferenceNodes>
        <groundReferenceNode node="0>3|3" threshold="0.3" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cutter" functionName="processCutterArea" >
            <area startNode="0>3|0" widthNode="0>3|1" heightNode="0>3|2" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <cylindered>
        <movingTools>
            <movingTool node="0>2|1|0" playSound="true">
                <controls axis="AXIS_CUTTER_REEL" invertAxis="false" mouseSpeedFactor="0.9" iconName="REEL_TRANSLATE_X"/>
                <translation transSpeed="0.1" transAcceleration="10" transMax="1.21" transMin="0.913" translationAxis="3" startTrans="0.92"/>
            </movingTool>
            <movingTool node="0>2|1" playSound="true">
                <controls axis="AXIS_CUTTER_REEL2" invertAxis="true" mouseSpeedFactor="0.9" iconName="REEL_TRANSLATE_Y"/>
                <rotation rotSpeed="20" rotAcceleration="50" rotMax="20" rotMin="-8" startRot="-8"/>
                <dependentPart node="0>2|2"/>
            </movingTool>
			<movingTool node="0>2|1|0|1">
				<dependentPart node="0>2|1|0|0|0" />
				<dependentPart node="0>2|1|0|0|1" />
				<dependentPart node="0>2|1|0|0|2" />
				<dependentPart node="0>2|1|0|0|3" />
				<dependentPart node="0>2|1|0|0|4" />
				<dependentPart node="0>2|1|0|0|5" />
            </movingTool>
        </movingTools>
        <movingParts>
				<movingPart node="0>2|1|0|0|0" referencePoint="0>2|1|0|1|0" referenceFrame="0>2|1|0|2" />
				<movingPart node="0>2|1|0|0|1" referencePoint="0>2|1|0|1|1" referenceFrame="0>2|1|0|2" />
				<movingPart node="0>2|1|0|0|2" referencePoint="0>2|1|0|1|2" referenceFrame="0>2|1|0|2" />
				<movingPart node="0>2|1|0|0|3" referencePoint="0>2|1|0|1|3" referenceFrame="0>2|1|0|2" />
				<movingPart node="0>2|1|0|0|4" referencePoint="0>2|1|0|1|4" referenceFrame="0>2|1|0|2" />
				<movingPart node="0>2|1|0|0|5" referencePoint="0>2|1|0|1|5" referenceFrame="0>2|1|0|2" />
        <movingPart node="0>2|2" referencePoint="0>2|1|1" referenceFrame="0>2|1|1">
            <translatingPart node="0>2|2|0" />
        </movingPart>
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>

    <animations>
        <animation name="knifeAnimation" looping="true">
		    <part node="0>2|3|0" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0.1 0 0"/>
            <part node="0>2|3|0" startTime="0.5" endTime="1" startTrans="0.1 0 0" endTrans="0 0 0"/>
        </animation>
	    <animation name="folding">
            <part node="0>7" startTime="0" endTime="0.1" visibility="true"/>
            <part node="0>7" startTime="0.1" endTime="0.15" visibility="false"/>
        </animation>
    </animations>
    
    <turnOnVehicle turnedOnByAttacherVehicle="true">
        <turnedOnAnimation name="knifeAnimation" speedScale="6" turnOnFadeTime="2" turnOffFadeTime="2"/>
    </turnOnVehicle>
	
	<cutter fruitTypeCategories="grainHeader">
	    <fruitExtraObjects>		
            <fruitExtraObject fruitType="wheat" node="0>7" isDefault="true"/>
            <fruitExtraObject fruitType="barley" node="0>7"/>
            <fruitExtraObject fruitType="soybean" node="0>7"/>
            <fruitExtraObject fruitType="oat" node="0>7"/>
        </fruitExtraObjects>
	    <testAreas>
            <testArea startNode="0>5|0" widthNode="0>5|0|0" heightNode="0>5|0|1" />
            <testArea startNode="0>5|1" widthNode="0>5|1|0" heightNode="0>5|1|1" />
            <testArea startNode="0>5|2" widthNode="0>5|2|0" heightNode="0>5|2|1" />
            <testArea startNode="0>5|3" widthNode="0>5|3|0" heightNode="0>5|3|1" />
        </testAreas>
		
        <effect>
            <effectNode linkNode="0>6|0" speedScale="0.0018" lengthAndRadius="0 0 -0.5 0.25" effectType="CENTER" changeSpeedScale="0.01" />
            <effectNode linkNode="0>6|1" speedScale="0.0013" lengthAndRadius="1.5 1 1 0.8" effectType="LEFT"  useInterpolation="true" minOffset="3" />
            <effectNode linkNode="0>6|2" speedScale="0.0013" lengthAndRadius="1.5 1 1 0.8" effectType="RIGHT" useInterpolation="true" minOffset="3" useMaxValue="true" />
        </effect>

        <fillEffect>
            <effectNode effectClass="ParticleEffect" effectNode="0>6|3" particleType="SMOKE" emitCountScale="0.1" worldSpace="false" useCuttingWidth="false"/>
        </fillEffect>
		
        <animationNodes>
            <animationNode node="0>2|0" rotSpeed="800" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
            <animationNode node="0>2|1|0|0" rotSpeed="200" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
            <animationNode node="0>2|1|0|1" rotSpeed="200" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
			<animationNode node="0>2|1|0|4" rotSpeed="150" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>
    </cutter>

    <dynamicMount forceLimitScale="1"/>
	
    <foldable>
        <foldingParts startMoveDirection="1">
            <foldingPart animationName="folding" speedScale="1"/>
        </foldingParts>
    </foldable>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <ai>
        <areaMarkers leftNode="0>4|0|0" rightNode="0>4|0|1" backNode="0>4|0|2" />
        <sizeMarkers leftNode="0>4|1|0" rightNode="0>4|1|1" backNode="0>4|1|2" />
        <collisionTrigger node="0>4|2" />
    </ai>

    <foliageBending>
        <bendingNode minX="-2.55" maxX="2.8" minZ="-1.3" maxZ="0.3" yOffset="0.45" />
    </foliageBending>
</vehicle>