<?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>Spartan 610</name>
        <specs>
            <workingWidth>6.1</workingWidth>
            <combination xmlFilename="$data/vehicles/newHolland/fr780/fr780.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutterForage</function>
        </functions>
        <image>$data/vehicles/capello/spartan610/store_spartan610.png</image>
        <price>64500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CAPELLO</brand>
        <category>forageHarvesterCutters</category>
        <shopTranslationOffset>0 -0.011 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>823296</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>144640</indexBufferMemoryUsage>
        <textureMemoryUsage>1835008</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>$data/vehicles/capello/spartan610/spartan610.i3d</filename>
        <size width="7" length="2.5"/>
        <speedLimit value="15"/>
        <components>
            <component centerOfMass="0 0.2 0" mass="2700" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="COMBINE_HEADER" />
        <mapHotspot type="CUTTER" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="cutterHarvester" forceSelectionOnAttach="false" >
                <heightNode node="heightNode" />
                <distanceToGround lower="0.1" upper="1.5" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <powerTakeOffs>
        <input inputNode="pto" detachNode="ptoDetachNode" inputAttacherJointIndices="1" aboveAttacher="true" ptoName="LEFT_PTO"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="540" neededMaxPtoPower="100"/>

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.4" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cutter" functionName="processCutterArea" >
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <testAreas autoGenerate="true" zOffset="0.5" xOffset="0" length="0.6" numAreas="8"/>
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <animations>
        <animation name="moveSupport">
            <part node="supportArms" startTime="0" endTime="0.9" startTrans="0 0.115 0" endTrans="0 0 0"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="0.89" volumeScale="1.2" pitchScale="1.4"/>
            <sound template="clackVar6"             startTime="0.01" direction="-1" volumeScale="1.3" pitchScale="1.3"/>
        </animation>
    </animations>

    <cutter fruitTypeCategories="directCutter" allowsForageGrowthState="true" fruitTypeConverter="forageHarvester">
        <effect>
            <effectNode effectClass="ParticleEffect" effectNode="smokeEmitter" particleType="SMOKE" materialType="smokeParticle" useFruitColor="true" emitCountScale="0.1" useCuttingWidth="false"/>
            <effectNode effectClass="ParticleEffect" effectNode="smokeEmitter" particleType="SMOKE" materialType="smokeParticle" useFruitColor="true" emitCountScale="0.1" useCuttingWidth="false" worldSpace="false"/>

            <effectNode effectClass="CutterMotionPathEffect" effectType="CUTTER_FORAGE" linkNode="cutterEffectLinkNode">
                <motionPathEffect textureFilename="$data/vehicles/capello/spartan610/cutterArray.dds" numRows="12" rowLength="26" verticalOffset="-0.15" minFade="0.05" speedScale="0.40"/>
            </effectNode>
        </effect>

        <animationNodes>
            <animationNode node="drum" rotSpeed="800" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="2"/>
            <animationNode node="cutter01" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter02" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter03" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter04" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter05" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter06" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter07" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter08" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter09" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter10" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter11" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter12" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter13" rotSpeed="-1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
            <animationNode node="cutter14" rotSpeed="1500" rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="3"/>
        </animationNodes>

        <sounds>
            <cut template="cropCuttingForage" />
        </sounds>
    </cutter>

    <windBending>
        <windBendingNodes>
            <windBendingNode node="windBend" decalNode="windBend_decal" maxBending="0.1" maxBendingSpeed="20" />
        </windBendingNodes>
    </windBending>

    <turnOnVehicle turnedOnByAttacherVehicle="true">
        <sounds>
            <start template="forageHarvesterStart" />
            <work  template="forageHarvesterWork" />
            <stop  template="forageHarvesterStop" pitchScale="1.7" volumeScale="0.5" />
        </sounds>
    </turnOnVehicle>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack"/>
        <collisionTrigger node="aiCollisionNode" width="6.4" height="1.5"/>
        <agentAttachment width="6.3" height="1.9" length="2.4" lengthOffset="0.1"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-3.2" maxX="3.2" minZ="-0.7" maxZ="1.1" yOffset="0.2" />
    </foliageBending>

    <dynamicMount forceLimitScale="1"/>

    <baseMaterial>
        <material name="capelloSpartan610_mat" baseNode="capello_vis">
            <shaderParameter name="colorMat0" value="CAPELLO_RED1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="spartan610_main_component1" node="0>" />
        <i3dMapping id="capello_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="heightNode" node="0>0|0|0|0" />
        <i3dMapping id="pto" node="0>0|0|1" />
        <i3dMapping id="ptoDetachNode" node="0>0|0|2" />
        <i3dMapping id="supportArms" node="0>0|0|3" />
        <i3dMapping id="drum" node="0>0|1|0" />
        <i3dMapping id="windBendRot" node="0>0|1|1" />
        <i3dMapping id="windBend" node="0>0|1|1|0" />
        <i3dMapping id="windBend_decal" node="0>0|1|1|0|0" />
        <i3dMapping id="cutter01" node="0>0|1|2|0|0" />
        <i3dMapping id="cutter02" node="0>0|1|2|0|1" />
        <i3dMapping id="cutter03" node="0>0|1|2|0|2" />
        <i3dMapping id="cutter04" node="0>0|1|2|0|3" />
        <i3dMapping id="cutter05" node="0>0|1|2|0|4" />
        <i3dMapping id="cutter06" node="0>0|1|2|0|5" />
        <i3dMapping id="cutter07" node="0>0|1|2|0|6" />
        <i3dMapping id="cutter08" node="0>0|1|2|0|7" />
        <i3dMapping id="cutter09" node="0>0|1|2|0|8" />
        <i3dMapping id="cutter10" node="0>0|1|2|0|9" />
        <i3dMapping id="cutter11" node="0>0|1|2|0|10" />
        <i3dMapping id="cutter12" node="0>0|1|2|0|11" />
        <i3dMapping id="cutter13" node="0>0|1|2|0|12" />
        <i3dMapping id="cutter14" node="0>0|1|2|0|13" />
        <i3dMapping id="workAreaStart" node="0>0|2|0" />
        <i3dMapping id="workAreaWidth" node="0>0|2|1" />
        <i3dMapping id="workAreaHeight" node="0>0|2|2" />
        <i3dMapping id="groundReferenceNode" node="0>0|2|3" />
        <i3dMapping id="aiMarkerLeft" node="0>0|3|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|3|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|3|2" />
        <i3dMapping id="aiCollisionNode" node="0>0|3|3" />
        <i3dMapping id="cutterEffectLinkNode" node="0>0|4|0" />
        <i3dMapping id="smokeEmitter" node="0>0|4|1" />
    </i3dMappings>
</vehicle>
