<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="mower" 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>Disco 24</name>
        <specs>
            <neededPower>50</neededPower>
            <workingWidth>2.4</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>store_Disco24.dds</image>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>CLAAS</brand>
        <category>mowers</category>
        <shopTranslationOffset>0.5 0 0</shopTranslationOffset>
        <shopHeight>3</shopHeight>
        <vertexBufferMemoryUsage>925440</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>268800</indexBufferMemoryUsage>
        <textureMemoryUsage>1507328</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>Disco24.i3d</filename>
        <size width="3.25" length="2.4" lengthOffset="-0.2"/>
        <speedLimit value="22"/>
        <components>
            <component centerOfMass="-1.183 -0.018 -0.888" solverIterationCount="10" mass="450"/>
			<component centerOfMass="0 0 0" solverIterationCount="10" mass="200"/>
			<joint component1="1" component2="2" node="armJoint02" rotLimit="0 0 0" transLimit="0 0 0" />
        </components>
		<schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

	 <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" upperRotationOffset="0" lowerTransLimitScale="0 0 0" lowerRotLimitScale="0 0 0" allowsLowering="false" >
                <distanceToGround lower="0.8" upper="0.88" />
                <bottomArm categories="2" ballType="1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>
	

    <lights>
        <sharedLight linkNode="0>2|0|0|11|1|0"    filename="$data/shared/assets/lights/lizard/rearLight05_right.xml" />

        <realLights>
            <high>
                <light node="0>2|0|0|11|1|1" lightTypes="0"/>
                <brakeLight node="0>2|0|0|11|1|1"/>
                <turnLightRight node="0>2|0|0|11|1|2"/>
            </high>
        </realLights>
    </lights>


   <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="pto" detachNode="ptoDetach" aboveAttacher="true" materialTemplateName="SHARED_BLACK2" decalMaterialTemplateName="WALTERSCHEID_YELLOW1">
        </input>

    </powerTakeOffs>
	
    <powerConsumer ptoRpm="470" neededMinPtoPower="25" neededMaxPtoPower="30"/>
	
	<connectionHoses>		
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="dynamicHoseInput" length="1.5" diameter="0.015">
            <objectChange node="dynamicHoseDettached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.3"/>
    </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"/>
        </workArea>
        <workArea type="auxiliary">
            <area startNode="dropAreaStart" widthNode="dropAreaWidth" heightNode="dropAreaHeight"/>
        </workArea>
    </workAreas>

     <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" foldMiddleAnimTime="0.14" startAnimTime="1" turnOnFoldMaxLimit="0.25" turnOnFoldMinLimit="0" turnOnFoldDirection="-1" detachingMinLimit="0.95" detachingMaxLimit="1">
                    <foldingPart animationName="folding" speedScale="0.6" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>


    <designConfigurations title="$l10n_table">
        <designConfiguration name="$l10n_configuration_valueNo" price="0">
            <objectChange node="0>2|0|0|11"  visibilityActive="false"/>
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueYes" price="1500">
            <objectChange node="0>2|0|0|11"  visibilityActive="true"/>
        </designConfiguration>
    </designConfigurations>
	
	<animations>
        <animation name="folding">
			<!-- lowering -->
            <part node="partJoint02" startTime="0.0" endTime="0.7" componentJointIndex="1" startRotLimit="0 0 15" endRotLimit="0 0 0" startTransLimit="0 0.35 0" endTransLimit="0 0 0"/>
			<part node="armJoint02" startTime="0.0" endTime="0.7" startRot="0 0 0" endRot="0 0 -35"/>
			<!-- folding -->
			<part node="partJoint02" startTime="0.7" endTime="3.0" startRot="0 0 0" endRot="0 0 -5"/>
			<part node="armJoint02" startTime="0.7" endTime="3.0" startRot="0 0 -35" endRot="0 0 -88"/>
			
			<sound template="hydraulicOpen02" startTime="0.71" endTime="4.99" volumeScale="1.4" pitchScale="0.8"/>
            <sound template="hydraulicOpen02" startTime="0.2"  endTime="0.69" volumeScale="1.4" pitchScale="0.6"/>
            <sound template="sheetImp02"            startTime="4.99"                volumeScale="1.3" pitchScale="0.7"/>
            <sound template="clackVar6"             startTime="0.71" direction="-1" volumeScale="0.9" pitchScale="0.8"/>
            <sound template="sheetImp05"            startTime="0.71" direction="-1" volumeScale="1.2" pitchScale="0.5"/>
            <sound template="sheetImp01"            startTime="0.2"  direction="-1" volumeScale="1"   pitchScale="0.8"/>
            <sound template="sheetImp02"            startTime="0.2"  direction="-1" volumeScale="2"   pitchScale="0.7"/>
            <sound template="sheetImp03"            startTime="0.1"  direction="-1" volumeScale="1.4" pitchScale="0.7"/>
            <sound template="sheetImp01"            startTime="0.6"  direction="1"  volumeScale="0.5" pitchScale="0.7"/>
            <sound template="clackVar4"             startTime="0.6"  direction="1"  volumeScale="1"   pitchScale="1.3"/>
            <sound template="sheetImp02"            startTime="0.6"  direction="1"  volumeScale="1.7" pitchScale="0.7"/>
            <sound template="sheetImp05"            startTime="0.5"  direction="1"  volumeScale="0.6" pitchScale="0.8"/>
            <sound template="clackVar6"             startTime="0.5"  direction="1"  volumeScale="0.3" pitchScale="0.8"/>
        </animation>
        <animation name="moveSupport">
			<part node="0>1|0" startTime="0.0" endTime="0.7" startTrans="0 0.232 0" endTrans="0 0 0"/>
			<part node="0>1|1" startTime="0.0" endTime="0.0001" startScale="0 0 0" endScale="1 1 1"/>
			<part node="0>1|1|0" startTime="0.0" endTime="0.0001" startScale="0 0 0" endScale="1 1 1"/>
		</animation>
    </animations>
	
	<cylindered>
        <movingTools>
			<movingTool node="partJoint02" playSound="false">
                <componentJoint index="1" anchorActor="0"/>
				<dependentPart node="mowingVis"/>
            </movingTool>
			<movingTool node="armJoint02" playSound="false">
                <componentJoint index="1" anchorActor="0"/>
            </movingTool>
        </movingTools>
        <movingParts>
			<movingPart node="attech1" referencePoint="attech1Ref" referenceFrame="attech1Ref" scaleZ="true" playSound="false"/>
			<movingPart node="springVis1" referencePoint="springVis1Ref" referenceFrame="springVis1Ref" isActiveDirty="true" limitedAxis="3" playSound="false" maxUpdateDistance="-">
				<dependentPart node="spring1"/>
            </movingPart>
			<movingPart node="spring1" referencePoint="springVis1Ref" referenceFrame="springVis1Ref" scaleZ="true" playSound="false"/>


			<movingPart node="cylinderVis" referencePoint="cylinderVisRef" referenceFrame="cylinderVisRef" isActiveDirty="true" playSound="false" maxUpdateDistance="-">
                <translatingPart node="cylinder"/>
            </movingPart>


			<movingPart node="springVis22" referencePoint="springVis2Ref" referenceFrame="springVis2Ref" isActiveDirty="true" playSound="false" maxUpdateDistance="-">
                <translatingPart node="spring2"/>
            </movingPart>

			<movingPart node="protector" referencePoint="protectorRef" referenceFrame="protectorRef" scaleZ="true" playSound="false"/>
			<movingPart node="mowingMowerVis" referenceFrame="jointNode" >
				<dependentPart node="cylinderVis"/>
				<dependentPart node="springVis2"/>
            </movingPart>
			
			<movingPart node="mowingVis" referencePoint="jointReference" referenceFrame="armJoint01" isActiveDirty="true" maxUpdateDistance="-">
				<dependentPart node="mowingMowerVis"/>
				<dependentPart node="attech1"/>
				<dependentPart node="protector"/>
				<dependentPart node="springVis1"/>
            </movingPart>
        </movingParts>
    </cylindered>
	
	<mower fruitTypeConverter="MOWER">
        <animationNodes>
            <animationNode node="disc1" rotSpeed="3000"  rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="6"/>
            <animationNode node="disc2" rotSpeed="-3000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="6"/>
			<animationNode node="disc3" rotSpeed="3000"  rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="6"/>
            <animationNode node="disc4" rotSpeed="-3000" rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="6"/>
			<animationNode node="disc5" rotSpeed="3000"  rotAxis="2" turnOnFadeTime="3" turnOffFadeTime="6"/>
        </animationNodes>
		
		 <dropEffects>
            <dropEffect workAreaIndex="1" dropAreaIndex="2">
                <effectNode effectClass="TypedMotionPathEffect" effectType="MOWER" linkNode="mowerEffectNode">
                     <motionPathEffect textureFilename="mowerEffectArray.dds" numRows="6" rowLength="11" minFade="0.15" shapeScale="1.8" maxShapeScale="1.3"/>
                </effectNode>
                <effectNode effectNode="smokeEmitter" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.25"/>
            </dropEffect>
        </dropEffects>
        <sounds>
            <cut template="mowerToolWork_01" linkNode="claas_component" volumeScale="0.7"/>
        </sounds>
    </mower>
	
	<windBending>
        <windBendingNodes>
            <windBendingNode node="0>2|0|0|10"  maxBending="0.015" maxBendingSpeed="20" speedReferenceNode="armJoint02" />
        </windBendingNodes>
    </windBending>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <sounds>
            <start template="mowerToolStart_01"/>
            <stop  template="mowerToolStop_01" />
            <work  template="mowerToolLoop_01" />
        </sounds>
    </turnOnVehicle>
	
    <wearable wearDuration="650" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
	<ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
		<sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack"/>
		<collisionTrigger node="aiCollisionNode" width="5.0" height="1.5"/>
        <agentAttachment width="2" height="1.7" length="6" lengthOffset="-2.5"/>
    </ai>

	
	<foliageBending>
        <bendingNode minX="-2" maxX="0.6" minZ="-0.2" maxZ="0.7" yOffset="-0.3" node="jointNode"/>
    </foliageBending>
	
    <i3dMappings>
		<i3dMapping id="claas_component" node="0>"/>
		<i3dMapping id="attacherJoint" node="0>0|0"/>
		<i3dMapping id="topReferenceNode" node="0>0|1"/>
		<i3dMapping id="pto" node="0>0|2"/>
		<i3dMapping id="ptoDetach" node="0>0|3"/>
		<i3dMapping id="Disc_MainVis" node="0>2"/>
		<i3dMapping id="mowingVis" node="0>2|0"/>
		<i3dMapping id="mowingMowerVis" node="0>2|0|0"/>
		<i3dMapping id="disc1" node="0>2|0|0|0|0"/>
		<i3dMapping id="disc2" node="0>2|0|0|0|1"/>
		<i3dMapping id="disc3" node="0>2|0|0|0|2"/>
		<i3dMapping id="disc4" node="0>2|0|0|0|3"/>
		<i3dMapping id="disc5" node="0>2|0|0|0|4"/>
		<i3dMapping id="workAreaStart" node="0>2|0|0|1|0"/>
		<i3dMapping id="workAreaWidth" node="0>2|0|0|1|1"/>
		<i3dMapping id="workAreaHeight" node="0>2|0|0|1|2"/>
		<i3dMapping id="dropAreaStart" node="0>2|0|0|2|0"/>
		<i3dMapping id="dropAreaWidth" node="0>2|0|0|2|1"/>
		<i3dMapping id="dropAreaHeight" node="0>2|0|0|2|2"/>
		<i3dMapping id="mowerEffectNode" node="0>2|0|0|3|0" />
        <i3dMapping id="smokeEmitter" node="0>2|0|0|3|1" />
		<i3dMapping id="aiMarkerLeft" node="0>2|0|0|4|0|0"/>
		<i3dMapping id="aiMarkerRight" node="0>2|0|0|4|0|1"/>
		<i3dMapping id="aiMarkerBack" node="0>2|0|0|4|0|2"/>
		<i3dMapping id="sizeMarkerLeft" node="0>2|0|0|4|1|0"/>
		<i3dMapping id="sizeMarkerRight" node="0>2|0|0|4|1|1"/>
		<i3dMapping id="sizeMarkerBack" node="0>2|0|0|4|1|2"/>
		<i3dMapping id="aiCollisionNode" node="0>2|0|0|4|2"/>
		<i3dMapping id="springVis2Ref" node="0>2|0|0|7"/>
		<i3dMapping id="cylinderVisRef" node="0>2|0|0|8"/>
		<i3dMapping id="protector" node="0>2|0|1"/>
		<i3dMapping id="joint" node="0>2|0|3|0"/>
		<i3dMapping id="attech1Ref" node="0>2|0|4"/>
		<i3dMapping id="springVis1Ref" node="0>2|0|5"/>
		<i3dMapping id="attech1" node="0>2|1"/>
		<i3dMapping id="attecher" node="0>2|1|0"/>
		<i3dMapping id="springVis1" node="0>2|2"/>
		<i3dMapping id="spring1" node="0>2|2|0"/>
		<i3dMapping id="springVis2" node="0>2|3"/>
		<i3dMapping id="springVis22" node="0>2|3|0"/>
		<i3dMapping id="spring2" node="0>2|3|0|0"/>
		<i3dMapping id="cylinderVis" node="0>2|5"/>
		<i3dMapping id="cylinder" node="0>2|5|0"/>
		<i3dMapping id="protectorRef" node="0>2|6"/>
		<i3dMapping id="dynamicHoseDettached" node="0>3|0"/>
		<i3dMapping id="dynamicHoseInput" node="0>2|5|3"/>
		<i3dMapping id="partJoint01" node="0>2|10"/>
		<i3dMapping id="partJoint02" node="0>2|10|0"/>
		<i3dMapping id="armJoint01" node="0>2|10|0|0"/>
		<i3dMapping id="armJoint02" node="0>2|10|0|0|0"/>
		<i3dMapping id="groundReferenceNode" node="1>0"/>
		<i3dMapping id="jointNode" node="1>1"/>
		<i3dMapping id="jointReference" node="1>2"/>
    </i3dMappings>
</vehicle>
