<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="mower">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>300 Twin Knife</en>
            <de>300 Doppelmesser</de>
		</name>
        <specs>
            <workingWidth>4.5</workingWidth>
            <combination xmlFilename="johnDeere2280.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>store_johnDeere300.png</image>
        <price>3400</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>mowers</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>743680</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>99328</indexBufferMemoryUsage>
        <textureMemoryUsage>1835008</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>JohnDeere300.i3d</filename>
        <size width="4.5" length="2.5" lengthOffset="0.4"/>
        <speedLimit value="17"/>
        <components>
            <component centerOfMass="-1.3 0.7 -0.15" solverIterationCount="10" mass="800"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="CUTTER" />
    </base>

    <designConfigurations title="$l10n_configuration_reel">
        <designConfiguration name="$l10n_configuration_original">
            <objectChange node="reelOriginal" visibilityActive="true" />
            <objectChange node="reelWood" visibilityActive="false" />
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_wood" price="100">
            <objectChange node="reelOriginal" visibilityActive="false" />
            <objectChange node="reelWood" visibilityActive="true" />
        </designConfiguration>
    </designConfigurations>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="TopRef" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0">
                <distanceToGround lower="0.3" upper="0.95"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

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

    <powerConsumer ptoRpm="460" neededMinPtoPower="10" neededMaxPtoPower="10"/>
	
    <animations>
        <animation name="knifeAnimation" looping="true">
            <part node="knife" startTime="0.0"    endTime="0.5" endTrans="-0.05 0 0" startTranst="0 0 0" /> 
            <part node="knife" startTime="0.5"    endTime="1" endTrans="0 0 0" startTranst="-0.05 0 0" /> 
            <part node="moveKnife" startTime="0.0"    endTime="0.5" endRot="0 -25 0" startRot="0 0 0" />
            <part node="moveKnife" startTime="0.5"    endTime="1" endRot="0 0 0" startRot="0 -25 0" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
        </movingTools>

        <movingParts>
        </movingParts>
    </cylindered>

     <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.35" />
        <groundReferenceNode node="groundReferenceNode1" threshold="0.35" />
        <groundReferenceNode node="groundReferenceNode2" threshold="0.35" />
        <groundReferenceNode node="groundReferenceNode3" threshold="0.35" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="false" >
            <area startNode="WorkAreaStart" widthNode="WorkAreaWidth" heightNode="WorkAreaHeight" />
            <groundReferenceNode index="1" />
            <folding minLimit="0" maxLimit="0.1" />
            <mower dropWindrow="true" dropAreaIndex="2" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>

        <workArea type="auxiliary" >
            <area startNode="DropAreaStart" widthNode="DropAreaWidth" heightNode="DropAreaHeight" />
        </workArea>
    </workAreas>

      <mower fruitTypeConverter="MOWER">
        <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>

        <animationNodes>
            <animationNode node="reel" rotSpeed="450" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="drum" rotSpeed="800" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="masher01" rotSpeed="800" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="masher02" rotSpeed="800" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="cardan01" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="cardan02" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="cardan03" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="cardan04" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="cardan05" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="cardan06" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
            <animationNode node="eixo" rotSpeed="1300" rotAxis="1" turnOnFadeTime="3" turnOffFadeTime="3"/>
        </animationNodes>
    </mower>

    <turnOnVehicle turnOffIfNotAllowed="false">
                <turnedOnAnimation name="knifeAnimation" speedScale="10" turnOnFadeTime="6" turnOffFadeTime="3"/>
        <sounds>
            <start template="HARVESTER_TOOL_START" volumeScale="0.5" />
            <work template="HARVESTER_TOOL_WORK" volumeScale="0.5" />
            <stop template="HARVESTER_TOOL_STOP" volumeScale="0.5" />
        </sounds>
    </turnOnVehicle>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
    <baseMaterial>
        <material name="base_mat" baseNode="johndeere_vis">
            <shaderParameter name="colorMat1" value="0.04 0.201 0.024 0"/>
            <shaderParameter name="colorMat6" value="1 0.5 0.024 0"/>
        </material>
    </baseMaterial>
	
	 <designMaterialConfigurations useDefaultColors="false" defaultColorIndex="0">
		<designMaterialConfiguration name="$l10n_color_GREEN_JD"   color="0.04 0.201 0.024" material="0" price="0"/>
		<designMaterialConfiguration name="$l10n_color_YELLOW"   color="1 0.5 0.024" material="0" price="0"/>
		<designMaterialConfiguration name="$l10n_color_METAL_BLACK"   color="0.025 0.025 0.025" material="0" price="0"/>
		<material name="base_mat" shaderParameter="colorMat1" />
		<material name="base_mat" shaderParameter="colorMat6" />
	</designMaterialConfigurations>

    <foliageBending>
        <bendingNode minX="-2.25" maxX="2.25" minZ="-0.68" maxZ="0.85" yOffset="0.3" />
    </foliageBending>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <sizeMarkers leftNode="aiSizeMarkerLeft" rightNode="aiSizeMarkerRight" backNode="aiSizeMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="4.5" height="1.4"/>
        <agentAttachment width="3" height="1.5" length="1.5" lengthOffset="0.15"/>
    </ai>

    <i3dMappings>
        <i3dMapping id="JohnDeere300_main_component1" node="0>" />
        <i3dMapping id="johndeere_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="pto" node="0>0|1" />
        <i3dMapping id="ptoInputNode" node="0>0|1|0" />
        <i3dMapping id="ptoDetachNode" node="0>0|1|1" />
        <i3dMapping id="reel" node="0>0|2|0" />
        <i3dMapping id="spike01" node="0>0|2|0|0" />
        <i3dMapping id="spike02" node="0>0|2|0|1" />
        <i3dMapping id="spike03" node="0>0|2|0|2" />
        <i3dMapping id="spike04" node="0>0|2|0|3" />
        <i3dMapping id="spike05" node="0>0|2|0|4" />
        <i3dMapping id="reelOriginal" node="0>0|2|0|5" />
        <i3dMapping id="reelWood" node="0>0|2|0|6" />
        <i3dMapping id="drum" node="0>0|3|0" />
        <i3dMapping id="masher01" node="0>0|3|1" />
        <i3dMapping id="masher02" node="0>0|3|2" />
        <i3dMapping id="knife" node="0>0|3|3|0" />
        <i3dMapping id="moveKnife" node="0>0|3|3|1" />
        <i3dMapping id="cardan01" node="0>0|3|3|2|0" />
        <i3dMapping id="cardan02" node="0>0|3|3|2|1" />
        <i3dMapping id="cardan03" node="0>0|3|3|2|2" />
        <i3dMapping id="cardan04" node="0>0|3|3|3|0" />
        <i3dMapping id="cardan05" node="0>0|3|3|3|1" />
        <i3dMapping id="cardan06" node="0>0|3|3|3|2" />
        <i3dMapping id="eixo" node="0>0|3|3|4" />
        <i3dMapping id="WorkAreaStart" node="0>0|4|0" />
        <i3dMapping id="WorkAreaWidth" node="0>0|4|0|0" />
        <i3dMapping id="WorkAreaHeight" node="0>0|4|0|1" />
        <i3dMapping id="DropAreaStart" node="0>0|4|1" />
        <i3dMapping id="DropAreaWidth" node="0>0|4|1|0" />
        <i3dMapping id="DropAreaHeight" node="0>0|4|1|1" />
        <i3dMapping id="aiMarkers" node="0>0|5|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="aiSizeMarkers" node="0>0|5|2" />
        <i3dMapping id="aiSizeMarkerLeft" node="0>0|5|2|0" />
        <i3dMapping id="aiSizeMarkerRight" node="0>0|5|2|1" />
        <i3dMapping id="aiSizeMarkerBack" node="0>0|5|2|2" />
        <i3dMapping id="mowerEffectNode" node="0>0|6|0" />
        <i3dMapping id="smokeEmitter" node="0>0|6|1" />
        <i3dMapping id="groundReferenceNode" node="0>0|7|0" />
        <i3dMapping id="groundReferenceNode1" node="0>0|7|1" />
        <i3dMapping id="groundReferenceNode2" node="0>0|7|2" />
        <i3dMapping id="groundReferenceNode3" node="0>0|7|3" />
        <i3dMapping id="TopRef" node="0>1" />
    </i3dMappings>
</vehicle>
