﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mower" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../bin/shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>GXF 3605 P</name>
        <specs>
            <neededPower>95</neededPower>
            <workingWidth>3.5</workingWidth>
            <combination xmlFilename="$data/vehicles/kongskilde/gxt13005P/gxt13005P.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>$data/vehicles/kongskilde/gxf3605p/store_gxf3605p.png</image>
        <price>15000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KONGSKILDE</brand>
        <category>mowers</category>
        <shopFoldingState>1</shopFoldingState>
        <shopTranslationOffset>0 -0.210 0</shopTranslationOffset>
        <shopRotationOffset>4.935 0 0.061</shopRotationOffset>
        <vertexBufferMemoryUsage>1197312</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>194560</indexBufferMemoryUsage>
        <textureMemoryUsage>1114112</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>$data/vehicles/kongskilde/gxf3605p/gxf3605p.i3d</filename>
        <size width="3.8" length="2.5" lengthOffset="0.1" />
        <speedLimit value="22" />
        <components>
            <component centerOfMass="0 0.4 0.2" solverIterationCount="10" mass="640" />
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="620" />
            <joint component1="1" component2="2" node="componentJoint01" rotLimit="0 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable allowFoldingWhileLowered="true">
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" upperRotationOffset="0" lowerRotLimitScale="0 0 0">
                <distanceToGround lower="0.8" upper="0.8" />
                <objectChange node="triangleLinkNode" visibilityActive="true" visibilityInactive="false"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <lowerAnimation name="lowerAnimation" speed="1" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" adapterNode="hydraulicIn01_detached" length="1.5" diameter="0.02">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="triangleLinkNode" filename="$data/shared/assets/triangleAdapter.i3d"/>
    </dynamicallyLoadedParts>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" color="SHARED_BLACK1"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="470" neededMinPtoPower="35" neededMaxPtoPower="35"/>

    <groundReferenceNodes>
        <groundReferenceNode node="groundRefNode" threshold="0.3" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="false" >
            <area startNode="areaStart" widthNode="areaWidth" heightNode="areaHeight" />
            <groundReferenceNode index="1" />
            <folding minLimit="0" maxLimit="0.1" />
            <mower dropWindrow="true" dropAreaIndex="2" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>

        <workArea type="auxiliary" >
            <area startNode="areaDropStart" widthNode="areaDropWidth" heightNode="areaDropHeight" />
        </workArea>
    </workAreas>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" turnOnFoldMaxLimit="0.1" turnOnFoldMinLimit="0" loweringMinLimit="0" loweringMaxLimit="1" detachingMinLimit="1" detachingMaxLimit="1" unfoldWarning="$l10n_warning_firstFoldUpTheTool">
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="lowerAnimation">
            <part componentJointIndex="1" startTime="0" endTime="1" startTransLimit="0 0 0" endTransLimit="0 0.4 0" startRotLimit="0 0 0" endRotLimit="0 0 10" tangentType="spline"/>
            <part node="componentJoint01" startTime="0" endTime="1" startTrans="0 0.2 0.05" endTrans="0 0 0" startRot="0 0 0" endRot="0 0 0" tangentType="spline"/>

            <sound template="hydraulicLayerTone" startTime="0.01" endTime="0.7"  volumeScale="1.2" pitchScale="0.8" />
            <sound template="clackVar6"          startTime="0.7"  direction="1"  volumeScale="1"   pitchScale="1.2" />
            <sound template="sheetImp02"         startTime="0.7"  direction="1"  volumeScale="2"   pitchScale="1.5" />
            <sound template="metalClose"         startTime="0.7"  direction="1"  volumeScale="1"   pitchScale="0.8" />
            <sound template="foldStartMed02"     startTime="0.7"  direction="1"  volumeScale="2"   pitchScale="1" />
            <sound template="foldStartMed02"     startTime="0.1"  direction="-1" volumeScale="2"   pitchScale="0.8" />
            <sound template="sheetImp02"         startTime="0.01" direction="-1" volumeScale="2"   pitchScale="0.8" />
            <sound template="clackVar4"          startTime="0.01" direction="-1" volumeScale="1"   pitchScale="1.6" />
        </animation>

        <animation name="folding">
            <part node="transportArmLeft"  startTime="0" endTime="1.9" startRot="0 0 0" endRot="0 0 -190"/>
            <part node="transportArmRight" startTime="0.1" endTime="2" startRot="0 0 0" endRot="0 0 190"/>

            <part node="transportArmLeft_helpJoint01"  startTime="0.0" endTime="1.9" startTrans="-0.035 -0.594 -0.384" endTrans="0.116 -0.444 -0.389" startRot="0.0 0.0 0.0" endRot="0.0 0.0 31.515" />
            <part node="transportArmLeft_helpJoint02"  startTime="0.0" endTime="1.9" startTrans="-0.472 -0.564 0.148" endTrans="-0.266 -0.576 0.134" startRot="0.0 0.0 0.0" endRot="0.0 0.0 62.909" />
            <part node="transportArmLeft_helpJoint03"  startTime="0.0" endTime="1.9" startTrans="-0.006 -0.535 1.0" endTrans="0.09 -0.391 1.003" startRot="0.0 0.0 0.0" endRot="0.0 0.0 41.665" />
            <part node="transportArmRight_helpJoint01" startTime="0.1" endTime="2.0" startTrans="0.005 -0.528 0.999" endTrans="-0.136 -0.361 0.933" startRot="0.0 0.0 0.0" endRot="0.0 0.0 -39.498" />
            <part node="transportArmRight_helpJoint02" startTime="0.1" endTime="2.0" startTrans="0.497 -0.562 0.287" endTrans="0.288 -0.612 0.278" startRot="0.0 0.0 0.0" endRot="0.0 0.0 -60.667" />
            <part node="transportArmRight_helpJoint03" startTime="0.1" endTime="2.0" startTrans="-0.131 -0.601 -0.368" endTrans="-0.18 -0.462 -0.314" startRot="0.0 0.0 0.0" endRot="0.0 0.0 -28.342" />

            <part node="colPartLeft"  startTime="0" endTime="1.9" startRot="0 0 0" endRot="0 0 -190"/>
            <part node="colPartRight" startTime="0.1" endTime="2" startRot="0 0 0" endRot="0 0 190"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="1.9"  volumeScale="1.2" pitchScale="1.4" />
            <sound template="defaultHydraulicSound" startTime="0.1"  endTime="1.99" volumeScale="1.2" pitchScale="1.2" />
            <sound template="clackVar4"             startTime="1.99" direction="-1" volumeScale="1.2" pitchScale="1.5" />
            <sound template="clackVar6"             startTime="0.1"  direction="-1" volumeScale="1"   pitchScale="1.5" />
            <sound template="sheetImp02"            startTime="0.1"  direction="-1" volumeScale="2"   pitchScale="1.5" />
            <sound template="clackVar4"             startTime="0.5"  direction="1"  volumeScale="1"   pitchScale="1.5" />
            <sound template="clackVar6"             startTime="1.9"  direction="1"  volumeScale="1"   pitchScale="1.5" />
            <sound template="sheetImp02"            startTime="1.9"  direction="1"  volumeScale="2"   pitchScale="1.5" />
            <sound template="clackVar4"             startTime="1.9"  direction="1"  volumeScale="1"   pitchScale="1.8" />
            <sound template="sheetImp02"            startTime="0.01" direction="1"  volumeScale="1.8" pitchScale="1.2" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="componentJoint01" playSound="true">
                <componentJoint index="1" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="mowerArmLeft" referencePoint="mowerArmLeftRef" referenceFrame="mowerArmRefFrame" isActiveDirty="true" maxUpdateDistance="200" limitedAxis="1">
                <dependentPart node="mowerArmRight" />
            </movingPart>
            <movingPart node="mowerArmRight" referencePoint="mowerArmRightRef" referenceFrame="mowerArmRefFrame" limitedAxis="1">
                <dependentPart node="mowerArmZAlign" />
            </movingPart>

            <movingPart node="mowerArmZAlign" referencePoint="mowerArmZAlignRef" referenceFrame="mowerArmZAlignRefFrame" limitedAxis="1">
                <dependentPart node="mowerArmXAlign" />
            </movingPart>

            <movingPart node="mowerArmXAlign" localReferencePoint="mowerArmXAlignLocalRef" referencePoint="mowerArmXAlignRef" referenceFrame="mowerArmXAlignRefFrame" limitedAxis="1">
                <dependentPart node="mowerMainArm" />
            </movingPart>

            <movingPart node="mowerMainArm" referencePoint="mowerMainArmRef" referenceFrame="mowerMainArmRef">
                <dependentPart node="mowerMainArmHydraulic" />
            </movingPart>
            <movingPart node="mowerMainArmHydraulic" referencePoint="mowerMainArmHydraulicRef" referenceFrame="mowerMainArmHydraulicRef">
                <translatingPart node="mowerMainArmHydraulicPunch" />
                <dependentPart node="spring" />
            </movingPart>
            <movingPart node="spring" referencePoint="springRef" referenceFrame="springRef" isActiveDirty="true" maxUpdateDistance="300">
                <translatingPart node="springPunch" />
            </movingPart>
        </movingParts>
    </cylindered>

    <mower fruitTypeConverter="MOWER">
        <animationNodes>
            <animationNode node="drum"     rotSpeed="-1500" rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter01" rotSpeed="-3000"  rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter02" rotSpeed="3000" rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter03" rotSpeed="-3000"  rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter04" rotSpeed="3000" rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter05" rotSpeed="-3000"  rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter06" rotSpeed="3000" rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter07" rotSpeed="-3000"  rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter08" rotSpeed="3000"  rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
            <animationNode node="cutter09" rotSpeed="-3000"  rotAxis="2" turnOnFadeTime="2" turnOffFadeTime="5"/>
        </animationNodes>

        <dropEffects>
            <dropEffect workAreaIndex="1" dropAreaIndex="2">
                <effectNode effectClass="TypedMotionPathEffect" effectType="MOWER" linkNode="mowerEffectNode">
                    <motionPathEffect textureFilename="$data/vehicles/kongskilde/gxf3605p/mowerEffectArray.dds" numRows="9" rowLength="18" minFade="0.15"/>
                </effectNode>
                <effectNode effectNode="smokeEmitter" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.25"/>
            </dropEffect>
        </dropEffects>
        <sounds>
            <cut template="grassCut" linkNode="gxf3605p_main_component1" volumeScale="0.7"/>
        </sounds>
    </mower>

    <windBending>
        <windBendingNodes>
            <windBendingNode node="windBendFront" maxBending="-0.1" maxBendingSpeed="20"/>
            <windBendingNode node="windBendLeft" maxBending="0.1" maxBendingSpeed="20" speedReferenceNode="windBendSpeedRefLeft"/>
            <windBendingNode node="windBendRight" maxBending="0.1" maxBendingSpeed="20" speedReferenceNode="windBendSpeedRefRight"/>
        </windBendingNodes>
    </windBending>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <sounds>
            <start template="DEFAULT_MOWER_START_SHORT" linkNode="gxf3605p_main_component1" />
            <stop template="DEFAULT_MOWER_STOP"         linkNode="gxf3605p_main_component1" />
            <work template="DEFAULT_MOWER_WORK"         linkNode="gxf3605p_main_component1" />
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="3.7" height="1.5"/>
        <agentAttachment width="3.6" height="1.55" length="2.2" lengthOffset="0.15"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.7" maxX="1.7" minZ="-0.6" maxZ="0.95" yOffset="-0.25" node="gxf3605p_mower_component2" />
        <bendingNode minX="0.15" maxX="0.5" minZ="-0.48" maxZ="1" yOffset="-0.5" node="transportArmRight" />
        <bendingNode minX="-0.5" maxX="-0.15" minZ="-0.48" maxZ="1" yOffset="-0.5" node="transportArmLeft" />
    </foliageBending>

    <baseMaterial>
        <material name="gxf3605p_mat" baseNode="gxf3605p_vis">
            <shaderParameter name="colorMat0" value="KONGSKILDE_RED"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="gxf3605p_main_component1" node="0>" />
        <i3dMapping id="gxf3605p_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|1" />
        <i3dMapping id="mowerMainArm" node="0>0|1|0" />
        <i3dMapping id="mowerMainArmHydraulicRef" node="0>0|1|0|0" />
        <i3dMapping id="mowerRef" node="0>0|1|0|1" />
        <i3dMapping id="spring" node="0>0|1|0|2" />
        <i3dMapping id="springPunch" node="0>0|1|0|2|0" />
        <i3dMapping id="mowerMainArmHydraulic" node="0>0|1|1" />
        <i3dMapping id="mowerMainArmHydraulicPunch" node="0>0|1|1|0" />
        <i3dMapping id="mowerArmRefFrame" node="0>0|1|2" />
        <i3dMapping id="mowerArmLeft" node="0>0|1|2|0" />
        <i3dMapping id="mowerArmZAlignRefFrame" node="0>0|1|2|0|0" />
        <i3dMapping id="mowerArmZAlign" node="0>0|1|2|0|0|0" />
        <i3dMapping id="mowerArmXAlignRefFrame" node="0>0|1|2|0|0|0|0" />
        <i3dMapping id="mowerArmXAlign" node="0>0|1|2|0|0|0|0|0" />
        <i3dMapping id="mowerArmXAlignLocalRef" node="0>0|1|2|0|0|0|0|0|0" />
        <i3dMapping id="mower" node="0>0|1|2|0|0|0|0|0|1" />
        <i3dMapping id="drum" node="0>0|1|2|0|0|0|0|0|1|0|0" />
        <i3dMapping id="cutter01" node="0>0|1|2|0|0|0|0|0|1|0|1" />
        <i3dMapping id="cutter02" node="0>0|1|2|0|0|0|0|0|1|0|2" />
        <i3dMapping id="cutter03" node="0>0|1|2|0|0|0|0|0|1|0|3" />
        <i3dMapping id="cutter04" node="0>0|1|2|0|0|0|0|0|1|0|4" />
        <i3dMapping id="cutter05" node="0>0|1|2|0|0|0|0|0|1|0|5" />
        <i3dMapping id="cutter06" node="0>0|1|2|0|0|0|0|0|1|0|6" />
        <i3dMapping id="cutter07" node="0>0|1|2|0|0|0|0|0|1|0|7" />
        <i3dMapping id="cutter08" node="0>0|1|2|0|0|0|0|0|1|0|8" />
        <i3dMapping id="cutter09" node="0>0|1|2|0|0|0|0|0|1|0|9" />
        <i3dMapping id="mowerMainArmRef" node="0>0|1|2|0|0|0|0|0|1|1" />
        <i3dMapping id="transportArmLeft" node="0>0|1|2|0|0|0|0|0|1|2|0" />
        <i3dMapping id="transportArmLeft_helpJoint01" node="0>0|1|2|0|0|0|0|0|1|2|0|2" />
        <i3dMapping id="transportArmLeft_helpJoint02" node="0>0|1|2|0|0|0|0|0|1|2|0|3" />
        <i3dMapping id="transportArmLeft_helpJoint03" node="0>0|1|2|0|0|0|0|0|1|2|0|4" />
        <i3dMapping id="transportArmRight" node="0>0|1|2|0|0|0|0|0|1|3|0" />
        <i3dMapping id="transportArmRight_helpJoint01" node="0>0|1|2|0|0|0|0|0|1|3|0|2" />
        <i3dMapping id="transportArmRight_helpJoint02" node="0>0|1|2|0|0|0|0|0|1|3|0|3" />
        <i3dMapping id="transportArmRight_helpJoint03" node="0>0|1|2|0|0|0|0|0|1|3|0|4" />
        <i3dMapping id="windBendSpeedRefLeft" node="0>0|1|2|0|0|0|0|0|1|4" />
        <i3dMapping id="windBendSpeedRefRight" node="0>0|1|2|0|0|0|0|0|1|5" />
        <i3dMapping id="windBendFront" node="0>0|1|2|0|0|0|0|0|1|6" />
        <i3dMapping id="ptoInputNode" node="0>0|1|2|0|0|0|0|0|1|8" />
        <i3dMapping id="mowerEffectNode" node="0>0|1|2|0|0|0|0|0|1|11|0" />
        <i3dMapping id="smokeEmitter" node="0>0|1|2|0|0|0|0|0|1|11|1" />
        <i3dMapping id="mowerArmRight" node="0>0|1|2|1" />
        <i3dMapping id="mowerArmZAlignRef" node="0>0|1|2|1|0" />
        <i3dMapping id="springRef" node="0>0|1|3" />
        <i3dMapping id="mowerArmXAlignRef" node="0>0|1|4" />
        <i3dMapping id="areaStart" node="0>0|2|0" />
        <i3dMapping id="areaWidth" node="0>0|2|1" />
        <i3dMapping id="areaHeight" node="0>0|2|2" />
        <i3dMapping id="areaDropStart" node="0>0|2|3" />
        <i3dMapping id="areaDropWidth" node="0>0|2|4" />
        <i3dMapping id="areaDropHeight" node="0>0|2|5" />
        <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="sizeMarkerLeft" node="0>0|3|3" />
        <i3dMapping id="sizeMarkerRight" node="0>0|3|4" />
        <i3dMapping id="sizeMarkerBack" node="0>0|3|5" />
        <i3dMapping id="aiCollisionNode" node="0>0|3|6" />
        <i3dMapping id="triangleLinkNode" node="0>0|4|2" />
        <i3dMapping id="componentJoint01" node="0>0|5|0" />
        <i3dMapping id="windBendRight" node="0>1|0" />
        <i3dMapping id="windBendLeft" node="0>1|1" />
        <i3dMapping id="gxf3605p_mower_component2" node="1>" />
        <i3dMapping id="mowerArmLeftRef" node="1>0" />
        <i3dMapping id="mowerArmRightRef" node="1>1" />
        <i3dMapping id="groundRefNode" node="1>2" />
        <i3dMapping id="colPartRight" node="1>3|0" />
        <i3dMapping id="colPartLeft" node="1>4|0" />
    </i3dMappings>
</vehicle>
