<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="cutter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>625X</name>
        <specs>
            <workingWidth>7.6</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_cutter</function>
        </functions>
        <image>store_header625X.png</image>
        <price>43000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>cutters</category>
        <shopTranslationOffset>0 -0.361 0</shopTranslationOffset>
        <shopRotationOffset>11.45 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2443264</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>346624</indexBufferMemoryUsage>
        <textureMemoryUsage>4325376</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>header625X.i3d</filename>
        <size width="9.5" length="4" />
        <speedLimit value="10" />
        <components>
            <component centerOfMass="0 0.2 -0.2" solverIterationCount="10" mass="2500" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="COMBINE_HEADER" />
        <mapHotspot type="CUTTER" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="cutter">
                <heightNode node="heightNode01" />
                <heightNode node="heightNode02" />
                <heightNode node="heightNode03" />
                <distanceToGround lower="0.35" upper="2.02" />
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.5" diameter="0.01" straighteningFactor="1.5">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.5" diameter="0.01" straighteningFactor="1.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn02" length="1.5" diameter="0.01" straighteningFactor="1.5">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" detachNode="ptoDetachNode" ptoName="LEFT_PTO"/>
    </powerTakeOffs>

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

    <lights>
        <realLights>
            <high>
                <light node="workLightHigh" lightTypes="2" />
            </high>
        </realLights>

        <defaultLights>
            <defaultLight shaderNode="workLight" lightTypes="2"/>
        </defaultLights>
    </lights>

    <groundReferenceNodes>
        <groundReferenceNode node="heightNode02" threshold="0.5" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cutter" functionName="processCutterArea" disableBackwards="true" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
            <testAreas autoGenerate="true" zOffset="0.5" xOffset="0" length="0.6" numAreas="10" areaWidthScale="0.25"/>
        </workArea>
    </workAreas>

    <animations>
        <animation name="knifeAnimation" looping="true">
            <part node="knifes" startTime="0" endTime="0.5" shaderParameter="offsetUV" shaderStartValues="0 0 0 0" shaderEndValues="0 0.07 0 0"/>
            <part node="knifes" startTime="0.5" endTime="1" shaderParameter="offsetUV" shaderStartValues="0 0.07 0 0" shaderEndValues="0 0 0 0"/>

            <part node="canolaExtension_lowKnifes" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0.1 0 0"/>
            <part node="canolaExtension_lowKnifes" startTime="0.5" endTime="1" startTrans="0.1 0 0" endTrans="0 0 0"/>

            <part node="canolaExtension_sideKnifesRight01" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0 -0.06 0"/>
            <part node="canolaExtension_sideKnifesRight01" startTime="0.5" endTime="1" startTrans="0 -0.06 0" endTrans="0 0 0"/>
            <part node="canolaExtension_sideKnifesRight02" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0 0.06 0"/>
            <part node="canolaExtension_sideKnifesRight02" startTime="0.5" endTime="1" startTrans="0 0.06 0" endTrans="0 0 0"/>

            <part node="canolaExtension_sideKnifesLeft01" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0 -0.06 0"/>
            <part node="canolaExtension_sideKnifesLeft01" startTime="0.5" endTime="1" startTrans="0 -0.06 0" endTrans="0 0 0"/>
            <part node="canolaExtension_sideKnifesLeft02" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0 0.06 0"/>
            <part node="canolaExtension_sideKnifesLeft02" startTime="0.5" endTime="1" startTrans="0 0.06 0" endTrans="0 0 0"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="reelMover" playSound="true" >
                <controls axis="AXIS_CUTTER_REEL" invertAxis="true" mouseSpeedFactor="0.5" iconName="REEL_TRANSLATE_X" />
                <translation transSpeed="0.2" transAcceleration="50" transMax="1.577" transMin="1.137" translationAxis="3" startTrans="1.137"/>
                <dependentPart node="pipeArm" />
            </movingTool>

            <movingTool node="reelArm" playSound="true" >
                <controls axis="AXIS_CUTTER_REEL2" invertAxis="true" mouseSpeedFactor="0.5" iconName="REEL_TRANSLATE_Y" />
                <rotation rotSpeed="10" rotAcceleration="50" rotMax="9" rotMin="-30" startRot="-28"/>
                <dependentPart node="hydraulicReel" />
            </movingTool>

            <movingTool node="reel1">
                <dependentPart node="spike1" />
                <dependentPart node="spike2" />
                <dependentPart node="spike3" />
                <dependentPart node="spike4" />
                <dependentPart node="spike5" />
                <dependentPart node="spike6" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="spike1" referencePoint="spikeRef1" referenceFrame="spikeRefFrame"/>
            <movingPart node="spike2" referencePoint="spikeRef2" referenceFrame="spikeRefFrame"/>
            <movingPart node="spike3" referencePoint="spikeRef3" referenceFrame="spikeRefFrame"/>
            <movingPart node="spike4" referencePoint="spikeRef4" referenceFrame="spikeRefFrame"/>
            <movingPart node="spike5" referencePoint="spikeRef5" referenceFrame="spikeRefFrame"/>
            <movingPart node="spike6" referencePoint="spikeRef6" referenceFrame="spikeRefFrame"/>

            <movingPart node="hydraulicReel" referencePoint="hydraulicReelRef" referenceFrame="hydraulicReelRef" >
                <translatingPart node="hydraulicReelPunch" />
            </movingPart>

            <movingPart node="pipeArm" localReferencePoint="pipeArmPart" referencePoint="pipeArmRef" referenceFrame="pipeArmRef" >
                <dependentPart node="pipeArmPart" />
            </movingPart>
            <movingPart node="pipeArmPart" referencePoint="pipeArmRef" referenceFrame="pipeArmRef" />
        </movingParts>

        <sounds>
            <hydraulic template="hydraulicClose02" pitchScale="1.2" volumeScale="1.0" fadeIn="0.1" fadeOut="0.05" linkNode="0>"/>
        </sounds>
    </cylindered>

    <cutter fruitTypeCategories="grainHeader">
        <effect>
            <effectNode effectClass="CutterMotionPathEffect" effectType="CUTTER" linkNode="cutterEffectLinkNode">
                <motionPathEffect textureFilename="textures/drumArray.dds" numRows="32" rowLength="42" minFade="0.06" textureRealWidth="17" speedScale="0.16"/>
            </effectNode>
            <effectNode effectClass="ParticleEffect" effectNode="smokeEmitter" particleType="SMOKE" materialType="smokeParticle" emitCountScale="0.1" worldSpace="false" useCuttingWidth="false"/>
        </effect>

        <fruitExtraObjects hideOnDetach="true">
            <fruitExtraObject fruitType="canola" node="canolaExtension" />
            <fruitExtraObject node="grainExtension" isDefault="true" />
        </fruitExtraObjects>

        <animationNodes>
            <animationNode node="drum"  rotAxis="1" rotSpeed="600"  turnOnFadeTime="2" turnOffFadeTime="3"/>
            <animationNode node="reel1" rotAxis="1" rotSpeed="210"  turnOnFadeTime="2" turnOffFadeTime="3"/>
            <animationNode node="reel2" rotAxis="1" rotSpeed="210"  turnOnFadeTime="2" turnOffFadeTime="3"/>
        </animationNodes>

        <automaticTilt raycastNode1="heightNode01" raycastNode2="heightNode03"/>
        <sounds>
            <cut template="cropCutting" />
        </sounds>
    </cutter>

    <turnOnVehicle turnedOnByAttacherVehicle="true">
        <turnedOnAnimation name="knifeAnimation" speedScale="6" turnOnFadeTime="2" turnOffFadeTime="2"/>
        <sounds>
            <start template="harvesterToolStart" volumeScale="1.0" />
            <work template="harvesterToolWork"   volumeScale="1.0" />
            <stop template="harvesterToolStop"   volumeScale="1.0" />
        </sounds>
    </turnOnVehicle>

    <dynamicMount forceLimitScale="1" />

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="8.6" height="2.0"/>
        <agentAttachment width="8.6" height="2.8" length="3" lengthOffset="0.3"/>
    </ai>

    <baseMaterial>
        <material name="X_mat" baseNode="header_vis">
            <shaderParameter name="colorMat0" value="JOHNDEERE_GREEN1"/>
            <shaderParameter name="colorMat1" value="JOHNDEERE_YELLOW1"/>
        </material>
        <material name="canolaModules_mat" baseNode="zieglerRapeseedModules_7_6M_vis">
            <shaderParameter name="colorMat0" value="JOHNDEERE_GREEN1"/>
        </material>
    </baseMaterial>

    <foliageBending>
        <bendingNode minX="-4" maxX="4" minZ="-1" maxZ="0.2" yOffset="0.4" />
    </foliageBending>

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

    <i3dMappings>
        <i3dMapping id="header625X_main_component1" node="0>" />
        <i3dMapping id="header_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="heightNode01" node="0>0|0|0|0" />
        <i3dMapping id="heightNode02" node="0>0|0|0|1" />
        <i3dMapping id="heightNode03" node="0>0|0|0|2" />
        <i3dMapping id="ptoInputNode" node="0>0|0|1" />
        <i3dMapping id="ptoDetachNode" node="0>0|0|1|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|2|2|0" />
        <i3dMapping id="workLight" node="0>0|1|0|0" />
        <i3dMapping id="workLightHigh" node="0>0|1|1" />
        <i3dMapping id="drum" node="0>0|2|0" />
        <i3dMapping id="reelArm" node="0>0|2|1" />
        <i3dMapping id="reelMover" node="0>0|2|1|0" />
        <i3dMapping id="reel1" node="0>0|2|1|0|0" />
        <i3dMapping id="spike1" node="0>0|2|1|0|0|0" />
        <i3dMapping id="spike2" node="0>0|2|1|0|0|1" />
        <i3dMapping id="spike3" node="0>0|2|1|0|0|2" />
        <i3dMapping id="spike4" node="0>0|2|1|0|0|3" />
        <i3dMapping id="spike5" node="0>0|2|1|0|0|4" />
        <i3dMapping id="spike6" node="0>0|2|1|0|0|5" />
        <i3dMapping id="reel2" node="0>0|2|1|0|1" />
        <i3dMapping id="spikeRef1" node="0>0|2|1|0|1|0" />
        <i3dMapping id="spikeRef2" node="0>0|2|1|0|1|1" />
        <i3dMapping id="spikeRef3" node="0>0|2|1|0|1|2" />
        <i3dMapping id="spikeRef4" node="0>0|2|1|0|1|3" />
        <i3dMapping id="spikeRef5" node="0>0|2|1|0|1|4" />
        <i3dMapping id="spikeRef6" node="0>0|2|1|0|1|5" />
        <i3dMapping id="pipeArmRef" node="0>0|2|1|0|2" />
        <i3dMapping id="spikeRefFrame" node="0>0|2|1|0|3" />
        <i3dMapping id="hydraulicReelRef" node="0>0|2|1|1" />
        <i3dMapping id="pipeArm" node="0>0|2|1|2" />
        <i3dMapping id="pipeArmPart" node="0>0|2|1|2|0" />
        <i3dMapping id="hydraulicReel" node="0>0|2|2" />
        <i3dMapping id="hydraulicReelPunch" node="0>0|2|2|0" />
        <i3dMapping id="knifes" node="0>0|2|3" />
        <i3dMapping id="workAreaStart" node="0>0|3|0" />
        <i3dMapping id="workAreaWidth" node="0>0|3|1" />
        <i3dMapping id="workAreaHeight" node="0>0|3|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|3|3" />
        <i3dMapping id="cutterEffectLinkNode" node="0>0|4|0" />
        <i3dMapping id="smokeEmitter" node="0>0|4|1" />
        <i3dMapping id="aiMarkerLeft" node="0>0|5|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|5|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|5|0|2" />
        <i3dMapping id="sizeMarkerLeft" node="0>0|5|1|0" />
        <i3dMapping id="sizeMarkerRight" node="0>0|5|1|1" />
        <i3dMapping id="sizeMarkerBack" node="0>0|5|1|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|5|2" />
        <i3dMapping id="canolaExtension" node="0>0|6|0" />
        <i3dMapping id="zieglerRapeseedModules_7_6M_vis" node="0>0|6|0|0" />
        <i3dMapping id="canolaExtension_lowKnifes" node="0>0|6|0|4" />
        <i3dMapping id="canolaExtension_sideKnifesRight01" node="0>0|6|0|5|0" />
        <i3dMapping id="canolaExtension_sideKnifesRight02" node="0>0|6|0|5|1" />
        <i3dMapping id="canolaExtension_sideKnifesLeft01" node="0>0|6|0|6|0" />
        <i3dMapping id="canolaExtension_sideKnifesLeft02" node="0>0|6|0|6|1" />
        <i3dMapping id="grainExtension" node="0>0|6|1" />
    </i3dMappings>
</vehicle>
