<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="CortadorHusqvarna" 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>Clear Cut</name>
        <specs>
            <neededPower>20</neededPower>
            <workingWidth>0.96</workingWidth>
			<combination xmlFilename="Husqvarna_MZ54.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>store_Husqvarna_ClearCut.dds</image>
        <price>1200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>HUSQVARNA</brand>
        <category>mowers</category>
		<shopTranslationOffset>0 -0.056 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>353024</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>101376</indexBufferMemoryUsage>
        <textureMemoryUsage>1441792</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>Husqvarna_ClearCut.i3d</filename>
        <size width="1.5" length="1" lengthOffset="0.2" height="0.1"/>
        <speedLimit value="20" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="20" mass="100" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

    <speedRotatingParts>
		<speedRotatingPart node="0>0|0|0|0|0|2|0" radius="0.15" foldMinLimit="0" foldMaxLimit="0.05"/>
		<speedRotatingPart node="0>0|0|0|0|0|2|1" radius="0.15" foldMinLimit="0" foldMaxLimit="0.05"/>
		<speedRotatingPart node="0>0|0|0|0|0|2|2" radius="0.15" foldMinLimit="0" foldMaxLimit="0.05"/>
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|5" jointType="HusqvarnaCortador" lowerRotationOffset="0" upperRotationOffset="0" upperRotLimitScale="0 0 0" lowerRotLimitScale="0 0 0">
                <distanceToGround lower="0.68" upper="0.68" />
				<objectChange node="0>0|1" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|4" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|1" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|0|1" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|0|0|0|1|6" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|0|0|0|3|0" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|0|0|0|1|7" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|0|0|5" translationActive="0 0.1 0" translationInactive="0 0 0"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <powerConsumer ptoRpm="500" neededMinPtoPower="1" neededMaxPtoPower="2"/>

     <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="0>0|0|0|0|6|0" filename="cano.xml"/>
    </powerTakeOffs>

    <groundReferenceNodes>
        <groundReferenceNode node="0>0|0|0|0|1|0|0" threshold="0.25" onlyActiveWhenLowered="true" />
        <groundReferenceNode node="0>0|0|0|0|1|1|0" threshold="0.25" onlyActiveWhenLowered="true" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="false" >
            <area startNode="0>0|2|0" widthNode="0>0|2|1" heightNode="0>0|2|2" />
            <groundReferenceNode index="1" />
            <mower dropWindrow="true" dropAreaIndex="2" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>

        <workArea type="auxiliary" >
            <area startNode="0>0|2|3|0" widthNode="0>0|2|3|1" heightNode="0>0|2|3|2" />
			<onlyActiveWhenLowered value="true"/>
        </workArea>

		<workArea type="auxiliary" >
            <area startNode="0>0|2|4|0" widthNode="0>0|2|4|1" heightNode="0>0|2|4|2" />
			<onlyActiveWhenLowered value="true"/>
        </workArea>

		 <workArea type="mulcher" functionName="processMulcherArea" requiresOwnedFarmland="false" disableBackwards="false">
            <area startNode="0>0|2|5" widthNode="0>0|2|6" heightNode="0>0|2|7" />
            <groundReferenceNode index="2" />
			<onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <workModes  foldMinLimit="0" foldMaxLimit="1">
        <workMode name="$l10n_action_workMode_rightSwath" inputBindingName="WORKMODE_RIGHT">
            <animation name="groundCortador" speed="-1" repeatAfterUnfolding="true"/>
			<animation name="groundMulcher" speed="1" repeatAfterUnfolding="true"/>
			<animation name="lateral" speed="-1" repeatAfterUnfolding="true"/>
			<animation name="cano" speed="1" repeatAfterUnfolding="true"/>
			<workAreas>
                <workArea workAreaIndex="1" dropAreaIndex="2"/>
            </workAreas>
        </workMode>
        <workMode name="$l10n_action_workMode_broad" inputBindingName="WORKMODE_MIDDLE">
			<animation name="groundCortador" speed="-1" repeatAfterUnfolding="true"/>
			<animation name="groundMulcher" speed="1" repeatAfterUnfolding="true"/>
			<animation name="lateral" speed="1" repeatAfterUnfolding="true"/>
			<animation name="cano" speed="1" repeatAfterUnfolding="true"/>
			<workAreas>
                <workArea workAreaIndex="1" dropAreaIndex="3"/>
            </workAreas>
        </workMode>

        <workMode name="$l10n_mulcher" inputBindingName="WORKMODE_MIDDLE">
            <animation name="groundCortador" speed="1" repeatAfterUnfolding="true"/>
			<animation name="groundMulcher" speed="-1" repeatAfterUnfolding="true"/>
			<animation name="lateral" speed="-1" repeatAfterUnfolding="true"/>
			<animation name="cano" speed="1" repeatAfterUnfolding="true"/>
			<workAreas>
                <workArea workAreaIndex="4"/>
            </workAreas>
        </workMode>

		 <workMode name="$l10n_comengatepararecolhedortriplo" inputBindingName="WORKMODE_MIDDLE">
			<animation name="groundCortador" speed="-1" repeatAfterUnfolding="true"/>
			<animation name="groundMulcher" speed="1" repeatAfterUnfolding="true"/>
			<animation name="lateral" speed="1" repeatAfterUnfolding="true"/>
			<animation name="cano" speed="-1" repeatAfterUnfolding="true"/>
			<workAreas>
                <workArea workAreaIndex="1" dropAreaIndex="3"/>
            </workAreas>
        </workMode>
    </workModes>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" foldMiddleAnimTime="1.0" turnOnFoldMaxLimit="1.0" turnOnFoldMinLimit="0.0" >
                    <foldingPart animationName="folding" speedScale="1.4" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="0>0|0" startTime="0" endTime="0.75" startRot="-20 0 0" endRot="17 0 0"/>
            <part node="0>0|0|0" startTime="0" endTime="0.75" startRot="20 0 0" endRot="-17 0 0"/>

			<part node="0>0|1" startTime="0" endTime="0.75" startRot="-20 0 0" endRot="17 0 0"/>
			<part node="0>0|1|0" startTime="0" endTime="0.75" startRot="20 0 0" endRot="-17 0 0"/>
			<part node="0>0|1|1" startTime="0" endTime="0.75" startRot="20 0 0" endRot="-17 0 0"/>

            <part node="0>0|4" startTime="0.8" endTime="1" startRot="-44 0 0" endRot="0 0 0"/>
            <part node="0>0|4" startTime="0.4" endTime="0.7" startRot="0 0 0" endRot="-44 0 0"/>


			<sound file="$data/sounds/animations/foldStart/aniFoldStartMed_01.ogg" startTime="0.01"  direction="1"  volumeScale="0.6" pitchScale="1.1" fadeOut="0.1" linkNode="0>0|0"/>
			<sound file="$data/sounds/animations/foldStart/aniFoldStartMed_01.ogg" startTime="0.01"  direction="-1"  volumeScale="0.6" pitchScale="1.4" fadeOut="0.1" linkNode="0>0|0"/>
			<sound file="$data/sounds/animations/foldStart/aniFoldStartMed_01.ogg" startTime="0.99"  direction="1"  volumeScale="0.6" pitchScale="1.2" fadeOut="0.1" linkNode="0>0|0"/>
			<sound file="$data/sounds/animations/foldStart/aniFoldStartMed_01.ogg" startTime="0.99"  direction="-1"  volumeScale="0.6" pitchScale="1.4" fadeOut="0.1" linkNode="0>0|0"/>

			<sound file="$data/sounds/animations/clacks/aniClack_06.ogg" startTime="0.01"  direction="-1"  volumeScale="0.6" pitchScale="1.2" fadeOut="0.1" linkNode="0>0|0"/>
			<sound file="$data/sounds/animations/clacks/aniClack_06.ogg" startTime="0.99"  direction="1"  volumeScale="0.6" pitchScale="1.2" fadeOut="0.1" linkNode="0>0|0"/>
        </animation>
		<animation name="groundCortador">
			<part node="0>0|0|0|0|1|0" startTime="0" endTime="1"  startTrans="0 0 0" endTrans="0 4 0"/>
        </animation>
		<animation name="groundMulcher">
			<part node="0>0|0|0|0|1|1" startTime="0" endTime="1"  startTrans="0 0 0" endTrans="0 4 0"/>
        </animation>

		<animation name="lateral">
			<part node="0>0|0|0|0|0|4" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -96"/>

			<sound template="palletsFillPlastic" startTime="0.01" direction="-1" volumeScale="2" pitchScale="0.8" linkNode="0>0|0|0|0|0|4"/>
			<sound template="palletsFillPlastic" startTime="0.99" direction="1" volumeScale="2"  linkNode="0>0|0|0|0|0|4"/>
        </animation>

		<animation name="cano">
			<part node="0>0|0|0|0|6" startTime="0" endTime="0.05" visibility="true"/>
            <part node="0>0|0|0|0|6" startTime="0.05" endTime="0.1" visibility="false"/>
        </animation>
    </animations>

    <cylindered>
        <movingParts>
            <movingPart node="0>0|0|0|0|0|3|0" referencePoint="0>0|6" referenceFrame="0>0|0|0|0|0|3" isActiveDirty="true" scaleZ="true" maxUpdateDistance="-"/>
            <movingPart node="0>0|1|2|0" referencePoint="0>0|7" referenceFrame="0>0|1|2" isActiveDirty="true" scaleZ="true" maxUpdateDistance="-"/>
        </movingParts>
    </cylindered>

    <mower fruitTypeConverter="MOWER">
        <animationNodes>
            <animationNode node="0>0|0|0|0|0|1|0" rotSpeed="2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="0>0|0|0|0|0|1|1" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="0>0|0|0|0|0|1|2" rotSpeed="2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="0>0|0|0|0|0|1|3" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="0>0|0|0|0|0|1|4" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
            <animationNode node="0>0|0|0|0|0|1|5" rotSpeed="2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>

			<animationNode node="0>0|0|0|0|0|0|0" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
			<animationNode node="0>0|0|0|0|0|0|1" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>
			<animationNode node="0>0|0|0|0|0|0|2" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>

			<animationNode node="0>0|0|0|0|0|1|6" rotSpeed="-2000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="5"/>

			<animationNode node="0>0|0|0|0|0|1|7" rotSpeed="-2000"  rotAxis="1" turnOnFadeTime="2" turnOffFadeTime="2" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
        </animationNodes>

        <dropEffects>
            <dropEffect workAreaIndex="1" dropAreaIndex="2">
                <effectNode effectClass="TypedMotionPathEffect" effectType="MOWER" linkNode="0>0|0|0|0|3">
                    <motionPathEffect textureFilename="$data/vehicles/siloking/trailedLine4System1000/unloadEffectFrontRightArray.dds" numRows="9" rowLength="11" minFade="0.15"/>
                </effectNode>
				<effectNode effectNode="0>0|0|0|0|2|1" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.25"/>
            </dropEffect>
        </dropEffects>
        <sounds>
            <cut template="grassCut" linkNode="0>" volumeScale="0.7"/>
        </sounds>

    </mower>

    <mulcher>
        <effects>
            <effect workAreaIndex="4">
                <effectNode effectClass="TypedMotionPathEffect" effectType="MULCHER" linkNode="0>0|0|0|0|2|2">
                    <motionPathEffect textureFilename="$data/vehicles/salek/mul1000/mulcherEffect01Array.dds" numRows="16" rowLength="18" minFade="0.15" shapeScale="0.3" maxShapeScale="1.2"/>
                </effectNode>
                <effectNode effectNode="0>0|0|0|0|2|1" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.5"/>
            </effect>
        </effects>
        <sounds>
            <work template="grassCut" linkNode="0>" volumeScale="0.7"/>
        </sounds>
    </mulcher>

    <turnOnVehicle turnOffIfNotAllowed="true"/>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="0>0|3|0" rightNode="0>0|3|1" backNode="0>0|3|2" />
        <collisionTrigger node="0>0|3|3" width="3" height="1.2"/>
        <agentAttachment width="1.6" height="1.2" length="1.2" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.8" maxX="0.8" minZ="-0.2" maxZ="-0.2" yOffset="0.1" />
		<bendingNode minX="-0.462" maxX="0" minZ="-0.299" maxZ="0.103" yOffset="-0.141" node="0>0|0|0|0|0|4|2"/>
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <baseColorConfigurations useDefaultColors="true" price="150" defaultColorIndex="0">
        <baseColorConfiguration materialTemplateName="HUSQVARNA_ORANGE1"/>
		<material materialSlotName="MZ54_mat" />
    </baseColorConfigurations> 
</vehicle>
