﻿<?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>DIRECT DISC 500</name>
        <specs>
            <workingWidth>5.0</workingWidth>
            <combination xmlFilename="$data/vehicles/claas/directDisc500Trailer/directDisc500Trailer.xml"/>
            <combination xmlFilename="$data/vehicles/claas/jaguar960TT/jaguar960TT.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_cutterForage</function>
        </functions>
        <image>$data/vehicles/claas/directDisc500/store_directDisc500.png</image>
        <price>59500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CLAAS</brand>
        <category>forageHarvesterCutters</category>
        <shopTranslationOffset>0 0.021 0</shopTranslationOffset>
        <shopRotationOffset>13.285 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1902592</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>344832</indexBufferMemoryUsage>
        <textureMemoryUsage>983040</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <designConfigurations>
        <designConfiguration name="$l10n_configuration_valueDefault" price="0">
            <objectChange node="configCutter"  visibilityActive="false"/>
            <objectChange node="colPart02" compoundChildActive="false" />
            <objectChange node="colPart03" compoundChildActive="false" />
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueDesign01" price="1000">
            <objectChange node="configCutter"  visibilityActive="true"/>
            <objectChange node="colPart02" compoundChildActive="true" />
            <objectChange node="colPart03" compoundChildActive="true" />
        </designConfiguration>
    </designConfigurations>

    <base>
        <typeDesc>$l10n_typeDesc_cutter</typeDesc>
        <filename>$data/vehicles/claas/directDisc500/directDisc500.i3d</filename>
        <size width="6.2" length="3" lengthOffset="0.3" />
        <speedLimit value="15" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="2830" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="COMBINE_HEADER" />
        <mapHotspot type="CUTTER" />
    </base>

    <powerConsumer ptoRpm="540" neededMinPtoPower="100" neededMaxPtoPower="100">
    </powerConsumer>

    <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" />
        </workArea>
    </workAreas>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="cutterHarvester" upperRotationOffset="0">
              <heightNode node="heightNode01" />
              <heightNode node="heightNode02" />
              <heightNode node="heightNode03" />
              <distanceToGround lower="0.1" upper="1.15" />
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="1.3" diameter="0.015" straighteningFactor="0.5">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="electricCable"  length="1" diameter="0.01" straighteningFactor="0.5">
            <objectChange node="electricIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_connector" filename="$data/shared/connectionHoses/connectors.i3d"/>
        <dynamicallyLoadedPart node="1|1" linkNode="electricIn01_connector"  filename="$data/shared/connectionHoses/connectors.i3d"/>
    </dynamicallyLoadedParts>

    <dynamicMount forceLimitScale="20" />

    <animations>
        <animation name="turnedOnAnimation_blades" looping="true">
            <part node="knifeLeft01" startTime="0" endTime="1"  startTrans="0 0 -0.003"  endTrans="0 -0.06 -0.003" />
            <part node="knifeLeft01" startTime="1" endTime="2"  startTrans="0 -0.06 -0.003" endTrans="0 0 -0.003" />
            <part node="knifeLeft02" startTime="0" endTime="1"  startTrans="0 -0.06 0.003"  endTrans="0 0 0.003" />
            <part node="knifeLeft02" startTime="1" endTime="2"  startTrans="0 0 0.003" endTrans="0 -0.06 0.003" />
            <part node="kniveRight01" startTime="0" endTime="1"  startTrans="0 0 0.004"  endTrans="0 -0.06 0.004" />
            <part node="kniveRight01" startTime="1" endTime="2"  startTrans="0 -0.06 0.004" endTrans="0 0 0.004" />
            <part node="kniveRight02" startTime="0" endTime="1"  startTrans="0 -0.06 -0.002"  endTrans="0 0 -0.002" />
            <part node="kniveRight02" startTime="1" endTime="2"  startTrans="0 0 -0.002" endTrans="0 -0.06 -0.002" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="tiltFrame">
                <inputAttacherJoint value="true"/>
                <dependentPart node="ptoLeft"/>
                <dependentPart node="ptoRight"/>
                <dependentPart node="ptoBottom"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="ptoLeft" referencePoint="ptoLeftRef" referenceFrame="ptoLeftRef">
                <translatingPart node="ptoLeftExtension" />
            </movingPart>
            <movingPart node="ptoRight" referencePoint="ptoRightRef" referenceFrame="ptoRightRef">
                <translatingPart node="ptoRightExtension" />
            </movingPart>
            <movingPart node="ptoBottom" referencePoint="ptoBottomRef" referenceFrame="ptoBottomRef" scaleZ="true"/>
        </movingParts>
    </cylindered>

    <cutter allowsForageGrowthState="true" fruitTypeCategories="directCutter" fruitTypeConverter="forageHarvester">
        <effect>
            <effectNode effectClass="ParticleEffect" effectNode="pickupSmokeEmitter" particleType="SMOKE" materialType="smokeParticle" useFruitColor="true" emitCountScale="0.1"/>
            <effectNode effectClass="ParticleEffect" effectNode="pickupSmokeEmitter" particleType="SMOKE" materialType="smokeParticle" useFruitColor="true" emitCountScale="0.1" worldSpace="false"/>
        </effect>

        <animationNodes>
            <animationNode node="drum"  rotAxis="1" rotSpeed="1000"  turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc01"  rotAxis="3" rotSpeed="-2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc02"  rotAxis="3" rotSpeed="2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc03"  rotAxis="3" rotSpeed="-2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc04"  rotAxis="3" rotSpeed="2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc05"  rotAxis="3" rotSpeed="-2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc06"  rotAxis="3" rotSpeed="2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc07"  rotAxis="3" rotSpeed="-2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc08"  rotAxis="3" rotSpeed="2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc09"  rotAxis="3" rotSpeed="-2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc10"  rotAxis="3" rotSpeed="2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc11"  rotAxis="3" rotSpeed="-2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
            <animationNode node="disc12"  rotAxis="3" rotSpeed="2500" turnOnFadeTime="2.5" turnOffFadeTime="4"/>
        </animationNodes>

        <automaticTilt raycastNode1="heightNode01" raycastNode2="heightNode03">
            <automaticTiltNode node="tiltFrame" minAngle="-3.5" maxAngle="3.5"/>
        </automaticTilt>
         <sounds>
            <cut template="cropCuttingForage" />
        </sounds>
    </cutter>

    <windBending>
        <windBendingNodes>
            <windBendingNode node="windBendNode" maxBending="0.1" maxBendingSpeed="20" />
        </windBendingNodes>
    </windBending>

    <turnOnVehicle turnedOnByAttacherVehicle="true">
        <turnedOnAnimation name="turnedOnAnimation_blades" speedScale="10" turnOnFadeTime="2" turnOffFadeTime="3"/>
        <sounds>
            <start template="forageHarvesterStart" />
            <work  template="forageHarvesterWork" />
            <stop  template="forageHarvesterStop" pitchScale="1.5" volumeScale="0.6"/>
        </sounds>
    </turnOnVehicle>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="5.4" height="2.3"/>
        <agentAttachment width="5.3" height="1.9" length="2.4" lengthOffset="0.4"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-2.65" maxX="2.65" minZ="-0.8" maxZ="1.4" yOffset="0.5" />
    </foliageBending>

    <baseMaterial>
        <material name="directDisc500_mat" baseNode="directDisc500_vis">
            <shaderParameter name="colorMat0" value="CLAAS_GREEN1"/>
            <shaderParameter name="colorMat1" value="CLAAS_DARKGREY2"/>
            <shaderParameter name="colorMat2" value="CLAAS_DARKGREY2"/>
            <shaderParameter name="colorMat3" value="CLAAS_WHITE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="directDisc500_main_component1" node="0>" />
        <i3dMapping id="directDisc500_vis" node="0>0" />
        <i3dMapping id="tiltFrame" node="0>0|0|0|0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0|0|0" />
        <i3dMapping id="electricCable" node="0>0|0|0|0|1|0" />
        <i3dMapping id="electricIn01_detached" node="0>0|0|0|0|1|0|0" />
        <i3dMapping id="electricIn01_connector" node="0>0|0|0|0|1|0|0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|0|0|1|1" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|0|0|1|2" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|0|0|1|2|0" />
        <i3dMapping id="ptoLeftRef" node="0>0|0|0|0|2" />
        <i3dMapping id="ptoRightRef" node="0>0|0|0|0|3" />
        <i3dMapping id="ptoBottomRef" node="0>0|0|0|0|4" />
        <i3dMapping id="heightNode01" node="0>0|0|1" />
        <i3dMapping id="heightNode02" node="0>0|0|2" />
        <i3dMapping id="heightNode03" node="0>0|0|3" />
        <i3dMapping id="configCutter" node="0>0|1" />
        <i3dMapping id="knifeLeft01" node="0>0|1|3|0" />
        <i3dMapping id="knifeLeft02" node="0>0|1|3|1" />
        <i3dMapping id="kniveRight01" node="0>0|1|4|0" />
        <i3dMapping id="kniveRight02" node="0>0|1|4|1" />
        <i3dMapping id="drum" node="0>0|2|0" />
        <i3dMapping id="disc01" node="0>0|2|1|0" />
        <i3dMapping id="disc02" node="0>0|2|2|0" />
        <i3dMapping id="disc03" node="0>0|2|3|0" />
        <i3dMapping id="disc04" node="0>0|2|4|0" />
        <i3dMapping id="disc05" node="0>0|2|5|0" />
        <i3dMapping id="disc06" node="0>0|2|6|0" />
        <i3dMapping id="disc07" node="0>0|2|7|0" />
        <i3dMapping id="disc08" node="0>0|2|8|0" />
        <i3dMapping id="disc09" node="0>0|2|9|0" />
        <i3dMapping id="disc10" node="0>0|2|10|0" />
        <i3dMapping id="disc11" node="0>0|2|11|0" />
        <i3dMapping id="disc12" node="0>0|2|12|0" />
        <i3dMapping id="windBendNode" node="0>0|2|13" />
        <i3dMapping id="ptoLeft" node="0>0|2|14" />
        <i3dMapping id="ptoLeftExtension" node="0>0|2|14|0" />
        <i3dMapping id="ptoRight" node="0>0|2|15" />
        <i3dMapping id="ptoRightExtension" node="0>0|2|15|0" />
        <i3dMapping id="ptoBottom" node="0>0|2|16" />
        <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="heightNode" node="0>0|3|3" />
        <i3dMapping id="pickupSmokeEmitter" node="0>0|4|0" />
        <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="aiCollisionNode" node="0>0|5|1" />
        <i3dMapping id="colPart02" node="0>2|1" />
        <i3dMapping id="colPart03" node="0>2|2" />
    </i3dMappings>
</vehicle>
