<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="cutter">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
            <en>Gleaner Command Series</en>
        </name>
        <specs>
            <workingWidth>9.0</workingWidth>
            <combination>Gleaner S98</combination>
        </specs>
        <functions>
            <function>$l10n_function_cutter</function>
        </functions>
        <image>headers/textures/store.dds</image>
        <price>45000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>AGCO</brand>
        <category>cornHeaders</category>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cornCutter</typeDesc>
        <filename>headers/GleanerCommandSeries.i3d</filename>
        <size width="7" length="4"/>
        <speedLimit value="10"/>
        <components>
            <component centerOfMass="0 0 -0.4" solverIterationCount="10" mass="4000" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>3" jointType="cutter" upperRotationOffset="0" lowerRotationOffset="5" forceSelectionOnAttach="true">
                <distanceToGround lower="1.4" upper="2.2"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <lights>

         <turnLights>
            <turnLightLeft shaderNode="0>14|0"/>
            <turnLightRight shaderNode="0>14|1"/> 
        </turnLights>

    </lights>


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

    <turnOnVehicle turnOffIfNotAllowed="true" turnedOnByAttacherVehicle="true" />

    <groundReferenceNodes>
        <groundReferenceNode node="0>13" threshold="0.4" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cutter" functionName="processCutterArea" >
            <area startNode="0>4" widthNode="0>5" heightNode="0>6"/>
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <cylindered>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <cutter fruitTypeCategories="maizeHeader" movingDirection="1">
        <testAreas>
            <testArea startNode="0>9|0" widthNode="0>9|0|0" heightNode="0>9|0|1"/>
            <testArea startNode="0>9|1" widthNode="0>9|1|0" heightNode="0>9|1|1"/>
            <testArea startNode="0>9|2" widthNode="0>9|2|0" heightNode="0>9|2|1"/>
            <testArea startNode="0>9|3" widthNode="0>9|3|0" heightNode="0>9|3|1"/>
            <testArea startNode="0>9|4" widthNode="0>9|4|0" heightNode="0>9|4|1"/>
            <testArea startNode="0>9|5" widthNode="0>9|5|0" heightNode="0>9|5|1"/>
            <testArea startNode="0>9|6" widthNode="0>9|6|0" heightNode="0>9|6|1"/>
            <testArea startNode="0>9|7" widthNode="0>9|7|0" heightNode="0>9|7|1"/>
            <testArea startNode="0>9|8" widthNode="0>9|8|0" heightNode="0>9|8|1"/>
            <testArea startNode="0>9|9" widthNode="0>9|9|0" heightNode="0>9|9|1"/>
        </testAreas>
        <effect>
            <effectNode linkNode="0>12|0|0" inverted="true" speedScale="0.0018" lengthAndRadius="1 3.8 1 3" effectType="CENTER" changeSpeedScale="0.01"/>
            <effectNode linkNode="0>12|0|1" inverted="true" speedScale="0.0012" lengthAndRadius="3 1 1 1" effectType="LEFT" useInterpolation="true" minOffset="5"/>
            <effectNode linkNode="0>12|0|2" inverted="true" speedScale="0.0012" lengthAndRadius="3 1 1 1" effectType="RIGHT" useInterpolation="true" minOffset="5" useMaxValue="true"/>
        </effect>

        <fillEffect>
            <effectNode effectNode="0>12|0|3" effectClass="ParticleEffect" particleType="CUTTER_CHOPPER"/>
            <effectNode effectClass="ParticleEffect" effectNode="0>12|0|4" particleType="SMOKE" emitCountScale="0.1" worldSpace="false" useCuttingWidth="false"/>
        </fillEffect>

        <animationNodes>
            <animationNode node="0>0|0" rotSpeed="1000" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>

    </cutter>

    <dynamicMount forceLimitScale="1"/>

    <washable dirtDuration="150" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

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

    <foliageBending>
        <bendingNode minX="-5" maxX="5" minZ="-1.2" maxZ="0.5" yOffset="0.2" />
    </foliageBending>


</vehicle>
