<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="turnOnCultivator">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>150.95</name>
        <specs>
            <neededPower>95</neededPower>
            <workingWidth>1.8</workingWidth>
        </specs>
        <functions>
			<function>$l10n_function_cultivator</function>
            <function>$l10n_function_subsoiler</function>
        </functions>
        <image>texture/store_selvaticiSpadingMachines150_95.png</image>
        <price>9500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SELVATICI</brand>
        <category>powerHarrows</category>
        <shopTranslationOffset>0 0.1 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1125792</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>175920</indexBufferMemoryUsage>
        <textureMemoryUsage>3058608</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_spadingMachines150_95</typeDesc>
        <filename>selvaticiSpadingMachines150_95.i3d</filename>
        <size width="3" length="2" />
        <speedLimit value="10" />
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="15" mass="800" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode"   lowerTransLimitScale="0 1 0" upperRotationOffset="12" lowerRotLimitScale="0 0 0" >
                <distanceToGround lower="0.05" upper="0.9" />
            </inputAttacherJoint>
        </inputAttacherJoints>
		
		<support animationName="moveSupport"/>
    </attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInputNode" aboveAttacher="true" filename="$data/shared/assets/powerTakeOffs/walterscheidW.xml" />
    </powerTakeOffs>
	
    <powerConsumer ptoRpm="500" neededMaxPtoPower="45" forceNode="selvatici150_95_component1" maxForce="2" />

    <groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode"  threshold="0.18" depthNode="depthNode" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <cultivator isSubsoiler="true">
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="0>" />
        </sounds>
        <directionNode node="0>" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>

     <workParticles>
		<particleAnimation>
            <node node="soilAnimation"      refNodeIndex="1" materialType="SOIL" />
        </particleAnimation>
        <particle>
            <node node="smokeEmitterShape"   refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="3" />
            <node node="chunkSoilEmitter01"   refNodeIndex="1" particleType="SOIL" worldSpace="false" />
			<node node="chunkSoilEmitter02"   refNodeIndex="1" particleType="SOIL_CHUNKS" worldSpace="false" />
			<node node="chunkBigEmitter03"   refNodeIndex="1" particleType="SOIL_BIG_CHUNKS" worldSpace="false" />
        </particle>
    </workParticles> 
	
    <turnOnVehicle>
        <sounds>
            <start template="STRAWBLOWER_START" />
            <work template="STRAWBLOWER_WORK" />
            <stop template="STRAWBLOWER_STOP" />
        </sounds>
		<turnedOnAnimation name="turnOnVangatrice" speedScale="1" />
    </turnOnVehicle>

    <cylindered>
        <movingTools>
			<!--vanghe-->
            <movingTool node="crankshaft" playSound="false">
				<dependentPart node="spade1"/>
				<dependentPart node="spade2"/>
				<dependentPart node="spade3"/>
				<dependentPart node="spade4"/>
            </movingTool>
        </movingTools>
		
        <movingParts>
			<!--spade1-->
			<movingPart node="spade1"  localReferencePoint="arm1" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" >
				<dependentPart node="arm1" />
            </movingPart>
			<movingPart node="arm1" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" />
			<!--spade2-->
			<movingPart node="spade2"  localReferencePoint="arm2" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" >
				<dependentPart node="arm2" />
            </movingPart>
			<movingPart node="arm2" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" />
			<!--spade3-->
			<movingPart node="spade3"  localReferencePoint="arm3" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" >
				<dependentPart node="arm3" />
            </movingPart>
			<movingPart node="arm3" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" />
			<!--spade4-->
			<movingPart node="spade4"  localReferencePoint="arm4" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" >
				<dependentPart node="arm4" />
            </movingPart>
			<movingPart node="arm4" referencePoint="vanghe_ref" referenceFrame="vangheRefFrame" limitedAxis="1" />
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <animations>
        <animation name="moveSupport">
			<part node="spade1Coll1" startTime="0" 	endTime="0.1"   startTrans="0.155 0.3 0"     endTrans="0.155 0 0" />
			<part node="spade1Coll2" startTime="0" 	endTime="0.1"   startTrans="-0.155 0.3 0"    endTrans="-0.155 0 0" />
			<part node="spade2Coll1" startTime="0" 	endTime="0.1"   startTrans="0.376 0.3 0"    endTrans="0.376 0 0" />
			<part node="spade2Coll2" startTime="0" 	endTime="0.1"   startTrans="0.376 0.3 0"    endTrans="0.376 0 0" />
			<part node="spade3Coll1" startTime="0" 	endTime="0.1"   startTrans="0.578 0.3 0"    endTrans="0.578 0 0" />
			<part node="spade3Coll2" startTime="0" 	endTime="0.1"   startTrans="-0.578 0.3 0"    endTrans="-0.578 0 0" />
			<part node="spade4Coll1" startTime="0" 	endTime="0.1"   startTrans="0.776 0.3 0"    endTrans="0.776 0 0" />
			<part node="spade4Coll2" startTime="0" 	endTime="0.1"   startTrans="-0.776 0.3 0"    endTrans="-0.776 0 0" />
		
			<part node="copperPinSupport" startTime="0" 	endTime="0.1"  startTrans="0 0 0"    endTrans="0 0.05 0" />
			<part node="pinSupportLeft"   startTime="0.1"  endTime="0.2"   startTrans="0 0 0"    endTrans="0.1 0 0" />
            <part node="pinSupportRight"  startTime="0.1"  endTime="0.2"   startTrans="0 0 0" 	  endTrans="-0.1 0 0" />
			
			<part node="moveSupport" 	  startTime="0.2" 	endTime="0.3"   	startTrans="0 0.24 0" endTrans="0 0 0" />
			
			<part node="pinSupportLeft"   startTime="0.3" 	endTime="0.4"  startTrans="0.1 0 0"  endTrans="0 0 0" />
			<part node="pinSupportRight"  startTime="0.3" 	endTime="0.4"  startTrans="-0.1 0 0" endTrans="0 0 0" />
			<part node="copperPinSupport" startTime="0.4"  endTime="0.5"   startTrans="0 0.05 0" endTrans="0 0 0" /> 
        </animation>

        <animation name="turnOnVangatrice" looping="true">
            <part node="crankshaft" startTime="0.0" endTime="0.99999"  startRot="0 0 0" endRot="-1080 0 0" />
            <part node="crankshaft" startTime="0.99999" endTime="1.0"  startRot="-1080 0 0" endRot="0 0 0" />
        </animation>
    </animations>

    <randomlyMovingParts>
        <randomlyMovingPart node="backDoor"  rotAxis="1" rotMean="5 -1" rotVariance="1.5 -0.5" rotTimeMean="0.1246 0.1246" rotTimeVariance="0.03 0.03" pauseMean="0.001 0.1246" pauseVariance="0.004 0.01" refNodeIndex="1" isSpeedDependent="true" />
    </randomlyMovingParts>

    <ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionTrigger" />
        <needsLowering value="true"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.85" maxX="0.85" minZ="-0.7" maxZ="0.5" yOffset="0.2" />
    </foliageBending>

    <baseMaterial>
        <material name="selvaticiSpadingMachines150_95_mat" baseNode="selvatici150_95_vis">
            <shaderParameter name="colorMat0" value="0.965 0.309 0.014 0"/>
            <shaderParameter name="colorMat1" value="0.533 0.397 0.063 1"/>
        </material>
    </baseMaterial>

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

    <i3dMappings>
        <i3dMapping id="selvatici150_95_component1" node="0>" />
        <i3dMapping id="selvatici150_95_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="ptoInputNode" node="0>0|0|2" />
        <i3dMapping id="copperPinSupport" node="0>0|0|3|0|0" />
        <i3dMapping id="pinSupportLeft" node="0>0|0|3|1|0" />
        <i3dMapping id="pinSupportRight" node="0>0|0|3|2|0" />
        <i3dMapping id="moveSupport" node="0>0|0|3|3|0" />
        <i3dMapping id="crankshaft" node="0>0|1|0" />
        <i3dMapping id="spade1" node="0>0|1|0|0" />
        <i3dMapping id="arm1" node="0>0|1|0|0|0" />
        <i3dMapping id="spade1Coll2" node="0>0|1|0|0|1|0" />
        <i3dMapping id="spade1Coll1" node="0>0|1|0|0|1|1" />
        <i3dMapping id="spade2" node="0>0|1|0|1" />
        <i3dMapping id="arm2" node="0>0|1|0|1|0" />
        <i3dMapping id="spade2Coll1" node="0>0|1|0|1|1|0" />
        <i3dMapping id="spade2Coll2" node="0>0|1|0|1|1|1" />
        <i3dMapping id="spade3" node="0>0|1|0|2" />
        <i3dMapping id="arm3" node="0>0|1|0|2|0" />
        <i3dMapping id="spade3Coll1" node="0>0|1|0|2|1|0" />
        <i3dMapping id="spade3Coll2" node="0>0|1|0|2|1|1" />
        <i3dMapping id="spade4" node="0>0|1|0|3" />
        <i3dMapping id="arm4" node="0>0|1|0|3|0" />
        <i3dMapping id="spade4Coll1" node="0>0|1|0|3|1|0" />
        <i3dMapping id="spade4Coll2" node="0>0|1|0|3|1|1" />
        <i3dMapping id="backDoor" node="0>0|1|1" />
        <i3dMapping id="vanghe_ref" node="0>0|1|2" />
        <i3dMapping id="vangheRefFrame" node="0>0|1|3" />
        <i3dMapping id="workAreaStart" node="0>0|2|0" />
        <i3dMapping id="workAreaWidth" node="0>0|2|1" />
        <i3dMapping id="workAreaHeight" node="0>0|2|2" />
        <i3dMapping id="depthNode" node="0>0|2|3" />
        <i3dMapping id="groundReferenceNode" node="0>0|2|4" />
        <i3dMapping id="soilAnimation" node="0>0|3|0" />
        <i3dMapping id="smokeEmitterShape" node="0>0|3|1" />
        <i3dMapping id="chunkSoilEmitter01" node="0>0|3|2" />
        <i3dMapping id="chunkSoilEmitter02" node="0>0|3|3" />
        <i3dMapping id="chunkBigEmitter03" node="0>0|3|4" />
        <i3dMapping id="aiMarkerLeft" node="0>0|4|0|0" />
        <i3dMapping id="aiMarkerRight" node="0>0|4|0|1" />
        <i3dMapping id="aiMarkerBack" node="0>0|4|0|2" />
        <i3dMapping id="aiCollisionTrigger" node="0>0|4|1" />
    </i3dMappings>
</vehicle>
