<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="turnOnCultivator">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
	<storeData>
        <name>Poettinger Vitasem 302A Cultivator</name>
        <specs>
            <neededPower>110</neededPower>
            <workingWidth>3.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_cultivator</function>
        </functions>
        <image>Store_Cultivator.png</image>
        <price>42500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>POETTINGER</brand>
        <category>powerHarrows</category>
        <vertexBufferMemoryUsage>340096</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>48252</indexBufferMemoryUsage>
        <textureMemoryUsage>11884176</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_cultivator</typeDesc>
        <filename>poettingerVitasem302ACultivator.i3d</filename>
        <size width="3.5" length="3.5" lengthOffset="0.8"/>
        <speedLimit value="18" />
        <components>
            <component centerOfMass="0 0.2 0.25" solverIterationCount="20" mass="1800" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode"   lowerTransLimitScale="0 1 0" upperRotationOffset="12" lowerRotLimitScale="0 0 0" >
                <distanceToGround lower="0.25" upper="1.3" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <lowerAnimation name="lowerAnimation" speed="-1" />
        <support animationName="moveSupport" />
        <brakeForce>0.6</brakeForce>
    </attachable>
	
	<attacherJoints>
        <attacherJoint node="backAttacherJoint" allowsLowering="true" >
            <distanceToGround lower="0.41" upper="1.48" />
            <topArm rotationNode="upperLink" zScale="1"/>
            <schema position="1 0" rotation="0" invertX="false" liftedOffset="0 0"/>
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="Vitasem302A_component1" />
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="Vitasem302A_component1" />
        </sounds>
    </attacherJoints>
	
	<powerTakeOffs>
        <input inputAttacherJointIndices="1" detachNode="ptoDetachNode" inputNode="ptoInputNode" aboveAttacher="true" filename="$data/shared/assets/powerTakeOffs/walterscheidWWZ.xml" />
    </powerTakeOffs>
	
	<powerConsumer forceNode="0>" maxForce="8" ptoRpm="520" neededMaxPtoPower="10" />
	
	<speedRotatingParts>
        <speedRotatingPart node="drum"        radius="0.244" groundReferenceNodeIndex="1" />
		<speedRotatingPart node="LeftMarkerDisc" radius="0.2" groundReferenceNodeIndex="2" />
		<speedRotatingPart node="RightMarkerDisc" radius="0.2" groundReferenceNodeIndex="3" />
    </speedRotatingParts>
	
	<turnOnVehicle>
        <sounds>
            <start template="STRAWBLOWER_START" />
            <work template="STRAWBLOWER_WORK" />
            <stop template="STRAWBLOWER_STOP" />
        </sounds>

        <animationNodes>
            <animationNode node="turnOnRotationNode01"  rotSpeed="-2000" rotAxis="2" />
            <animationNode node="turnOnRotationNode02"  rotSpeed="2000"  rotAxis="2" />
            <animationNode node="turnOnRotationNode03"  rotSpeed="-2000" rotAxis="2" />
            <animationNode node="turnOnRotationNode04"  rotSpeed="2000"  rotAxis="2" />
            <animationNode node="turnOnRotationNode05"  rotSpeed="-2000" rotAxis="2" />
            <animationNode node="turnOnRotationNode06"  rotSpeed="2000"  rotAxis="2" />
            <animationNode node="turnOnRotationNode07"  rotSpeed="-2000" rotAxis="2" />
            <animationNode node="turnOnRotationNode08"  rotSpeed="2000"  rotAxis="2" />
            <animationNode node="turnOnRotationNode09"  rotSpeed="-2000" rotAxis="2" />
            <animationNode node="turnOnRotationNode10"  rotSpeed="2000"  rotAxis="2" />
        </animationNodes>
    </turnOnVehicle>
	
	<cultivator>
        <sounds>
            <work template="DEFAULT_CULTIVATOR_WORK" linkNode="0>" />
        </sounds>
        <directionNode node="0>" />
        <onlyActiveWhenLowered value="true"/>
    </cultivator>
	
	<groundReferenceNodes>
        <groundReferenceNode node="groundReferenceNode" threshold="0.018" depthNode="groundReferenceNode" />
        <groundReferenceNode node="ridgeMarkerLeftGroundReferenceNode" forceFactor="0" threshold="0.05" depthNode="ridgeMarkerLeftGroundReferenceNode" maxDepth="-0.1" />
        <groundReferenceNode node="ridgeMarkerRightGroundReferenceNode" forceFactor="0" threshold="0.05" depthNode="ridgeMarkerRightGroundReferenceNode" maxDepth="-0.1" />
    </groundReferenceNodes>
	
	<workAreas>
        <workArea type="cultivator" functionName="processCultivatorArea" disableBackwards="false">
            <area startNode="workAreaStart" widthNode="workAreaWidth" heightNode="workAreaHeight" />
            <groundReferenceNode index="1" />
        </workArea>

        <workArea type="ridgemarker" functionName="processRidgeMarkerArea" disableBackwards="false" needsSetIsTurnedOn="false">
            <area startNode="ridgeMarkerLeftAreaStart" widthNode="ridgeMarkerLeftAreaWidth" heightNode="ridgeMarkerLeftAreaHeight" />
            <testArea startNode="ridgeMarkerLeftTestAreaStart" widthNode="ridgeMarkerLeftTestAreaWidth" heightNode="ridgeMarkerLeftTestAreaHeight" />
            <groundReferenceNode index="2" />
        </workArea>
        <workArea type="ridgemarker" functionName="processRidgeMarkerArea" disableBackwards="false" needsSetIsTurnedOn="false">
            <area startNode="ridgeMarkerRightAreaStart" widthNode="ridgeMarkerRightAreaWidth" heightNode="ridgeMarkerRightAreaHeight" />
            <testArea startNode="ridgeMarkerRightTestAreaStart" widthNode="ridgeMarkerRightTestAreaWidth" heightNode="ridgeMarkerRightTestAreaHeight" />
            <groundReferenceNode index="3" />
        </workArea>
    </workAreas>
	
	<ridgeMarker onlyActiveWhenLowered="false">
        <marker animName="ridgeMarkerLeft" workAreaIndex="2"/>
        <marker animName="ridgeMarkerRight" workAreaIndex="3"/>
    </ridgeMarker>
	
	<animations>
        <animation name="ridgeMarkerLeft">
            <part node="ridgeMarkerLeft" startTime="0" endTime="1.5" startRot="0 0 0" endRot="0 0 -108" />
        </animation>
        <animation name="ridgeMarkerRight">
            <part node="ridgeMarkerRight" startTime="0" endTime="1.5" startRot="0 0 0" endRot="0 0 108" />
        </animation>
    </animations>
	
	<cylindered>
		<movingTools>
			<movingTool node="ridgeMarkerLeft">
				<dependentPart node="ridgeMarkerLeftVerin" />
			</movingTool>

			<movingTool node="ridgeMarkerRight">
				<dependentPart node="ridgeMarkerRightVerin" />
			</movingTool>
		</movingTools>

		<movingParts>
			<movingPart node="ridgeMarkerLeftVerin" referencePoint="ridgeMarkerLeftVerinRef" referenceFrame="ridgeMarkerLeftVerinRef">
				<translatingPart node="ridgeMarkerLeftVerinTige" />
			</movingPart>

			<movingPart node="ridgeMarkerRightVerin" referencePoint="ridgeMarkerRightVerinRef" referenceFrame="ridgeMarkerRightVerinRef">
				<translatingPart node="ridgeMarkerRightVerinTige" />
			</movingPart>
		</movingParts>
	</cylindered>
	
	<workParticles>
        <particleAnimation>
            <node node="soilAnimation"      refNodeIndex="1" materialType="SOIL" />
            <node node="soilAnimationLeft"  refNodeIndex="2" materialType="SOIL" maxDepth="-0.05" />
            <node node="soilAnimationRight" refNodeIndex="3" materialType="SOIL" maxDepth="-0.05" />
        </particleAnimation>

        <particle>
            <node node="soilEmitShape"    refNodeIndex="1" particleType="SOIL_CHUNKS" worldSpace="false" />
            <node node="dustEmitterShape" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="1.0" />
            <node node="soilEmitShape1"   refNodeIndex="1" particleType="SOIL"  />
        </particle>
    </workParticles>
	
	<ai>
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <collisionTrigger node="aiCollisionTrigger" />
    </ai>
	
	<baseMaterial>
        <material name="Vitasem_mat" baseNode="poettinger_vis">
            <shaderParameter name="colorMat0" value="POETTINGER_YELLOW"/>
            <shaderParameter name="colorMat1" value="POETTINGER_RED1"/>
			<shaderParameter name="colorMat2" value="POETTINGER_WHITE1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>
	
	 <i3dMappings>
        <i3dMapping id="Vitasem302A_component1" node="0>" />
        <i3dMapping id="poettinger_vis" node="0>0" />
		<i3dMapping id="ridgeMarkerLeft" node="0>0|9" />
		<i3dMapping id="ridgeMarkerLeftVerin" node="0>0|11" />
		<i3dMapping id="ridgeMarkerLeftVerinTige" node="0>0|11|0" />
		<i3dMapping id="ridgeMarkerLeftVerinRef" node="0>0|9|0" />
		<i3dMapping id="ridgeMarkerRight" node="0>0|10" />
		<i3dMapping id="ridgeMarkerRightVerin" node="0>0|12" />
		<i3dMapping id="ridgeMarkerRightVerinTige" node="0>0|12|0" />
		<i3dMapping id="ridgeMarkerRightVerinRef" node="0>0|10|0" />
		<i3dMapping id="attacherJoint" node="0>0|0" />
		<i3dMapping id="backAttacherJoint" node="0>0|15|0" />
		<i3dMapping id="topReferenceNode" node="0>0|1" />
		<i3dMapping id="upperLink" node="0>0|15|1" />
		<i3dMapping id="ptoInputNode" node="0>0|2" />
		<i3dMapping id="ptoDetachNode" node="0>0|2|0" />
		<i3dMapping id="drum" node="0>0|13" />
		<i3dMapping id="aiCollisionTrigger" node="0>0|19" />
		<i3dMapping id="LeftMarkerDisc" node="0>0|9|1|0" />
		<i3dMapping id="RightMarkerDisc" node="0>0|10|1|0" />
		<i3dMapping id="groundReferenceNode" node="0>0|17" />
		<i3dMapping id="ridgeMarkerLeftGroundReferenceNode" node="0>0|9|9" />
		<i3dMapping id="ridgeMarkerRightGroundReferenceNode" node="0>0|10|9" />
		<i3dMapping id="workAreaStart" node="0>0|3" />
        <i3dMapping id="workAreaWidth" node="0>0|4" />
        <i3dMapping id="workAreaHeight" node="0>0|5" />
		<i3dMapping id="ridgeMarkerLeftAreaStart" node="0>0|9|2" />
        <i3dMapping id="ridgeMarkerLeftAreaWidth" node="0>0|9|3" />
        <i3dMapping id="ridgeMarkerLeftAreaHeight" node="0>0|9|4" />
		<i3dMapping id="ridgeMarkerLeftTestAreaStart" node="0>0|9|5" />
        <i3dMapping id="ridgeMarkerLeftTestAreaWidth" node="0>0|9|6" />
        <i3dMapping id="ridgeMarkerLeftTestAreaHeight" node="0>0|9|7" />
		<i3dMapping id="ridgeMarkerRightAreaStart" node="0>0|10|2" />
        <i3dMapping id="ridgeMarkerRightAreaWidth" node="0>0|10|3" />
        <i3dMapping id="ridgeMarkerRightAreaHeight" node="0>0|10|4" />
		<i3dMapping id="ridgeMarkerRightTestAreaStart" node="0>0|10|5" />
        <i3dMapping id="ridgeMarkerRightTestAreaWidth" node="0>0|10|6" />
        <i3dMapping id="ridgeMarkerRightTestAreaHeight" node="0>0|10|7" />
        <i3dMapping id="aiMarkerLeft" node="0>0|6" />
        <i3dMapping id="aiMarkerRight" node="0>0|7" />
        <i3dMapping id="aiMarkerBack" node="0>0|8" />
		<i3dMapping id="turnOnRotationNode01" node="0>0|14|0" />
		<i3dMapping id="turnOnRotationNode02" node="0>0|14|1" />
		<i3dMapping id="turnOnRotationNode03" node="0>0|14|2" />
		<i3dMapping id="turnOnRotationNode04" node="0>0|14|3" />
		<i3dMapping id="turnOnRotationNode05" node="0>0|14|4" />
		<i3dMapping id="turnOnRotationNode06" node="0>0|14|5" />
		<i3dMapping id="turnOnRotationNode07" node="0>0|14|6" />
		<i3dMapping id="turnOnRotationNode08" node="0>0|14|7" />
		<i3dMapping id="turnOnRotationNode09" node="0>0|14|8" />
		<i3dMapping id="turnOnRotationNode10" node="0>0|14|9" />
		<i3dMapping id="soilAnimation" node="0>0|16|0" />
        <i3dMapping id="soilEmitShape" node="0>0|16|1" />
        <i3dMapping id="dustEmitterShape" node="0>0|16|2" />
        <i3dMapping id="soilEmitShape1" node="0>0|16|3" />
		<i3dMapping id="soilAnimationRight" node="0>0|10|8|0" />
		<i3dMapping id="soilAnimationLeft" node="0>0|9|8|0" />
	</i3dMappings>
</vehicle>