<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="plough">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
	    <name>Plough</name>
        <specs>
            <neededPower>150</neededPower>
            <workingWidth>2.5</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_plough</function>
        </functions>
        <image>storeTSRfront.dds</image>
        <price>17500</price>
        <dailyUpkeep>15</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LEMKEN</brand>
        <category>plows</category>
        <fieldJob sizeCategory="1" typeCategory="plough" />
        <vertexBufferMemoryUsage>530784</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>91734</indexBufferMemoryUsage>
        <textureMemoryUsage>9437344</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_plough</typeDesc>
    <filename>Ransomes_TSR_front.i3d</filename>

    <size width="3.1" length="5"/>

	<speedLimit value="15" />
	
    <workAreas>
        <workArea startIndex="0>2|0|0|3" widthIndex="0>2|0|0|6" heightIndex="0>2|0|0|5" refNodeIndex="1" type="plough" />
    </workAreas>
	
	<powerConsumer neededPtoPower="0" forceNode="0>" maxForce="10" />
	
    <ploughTurnSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.5" volume="1.0"/>
    <ploughSound file="$data/vehicles/tools/ploughSound.wav" pitchOffset="0.5" volume="1.0"/>
	
	
    <groundParticleAnimation>
		   <node index="0>2|0|0|14|0|0|0" materialType="SOIL" refNodeIndex="2"/>
		   <node index="0>2|0|0|14|0|0|1" materialType="SOIL" refNodeIndex="1"/>
		   <node index="0>2|0|0|12|0|0|0" materialType="SOIL" refNodeIndex="2"/>
		   <node index="0>2|0|0|12|0|0|1" materialType="SOIL" refNodeIndex="1"/>
		   <node index="0>2|0|0|13|0|0|0" materialType="SOIL" refNodeIndex="2"/>
		   <node index="0>2|0|0|13|0|0|1" materialType="SOIL" refNodeIndex="1"/>
	</groundParticleAnimation>
    <groundParticle>
		   <node index="0>2|0|0|14|0|0|2" particleType="SOIL" refNodeIndex="2" />
           <node index="0>2|0|0|14|0|0|3" particleType="SOIL" refNodeIndex="1" />
		   <node index="0>2|0|0|12|0|0|2" particleType="SOIL" refNodeIndex="2" />
           <node index="0>2|0|0|12|0|0|3" particleType="SOIL" refNodeIndex="1" />
		   <node index="0>2|0|0|13|0|0|2" particleType="SOIL" refNodeIndex="2" />
           <node index="0>2|0|0|13|0|0|3" particleType="SOIL" refNodeIndex="1" />
		   
		   <node index="0>2|0|0|14|0|0|4" particleType="SOIL_SMOKE" refNodeIndex="2" />
           <node index="0>2|0|0|14|0|0|5" particleType="SOIL_SMOKE" refNodeIndex="1" />
		   <node index="0>2|0|0|12|0|0|4" particleType="SOIL_SMOKE" refNodeIndex="2" />
           <node index="0>2|0|0|12|0|0|5" particleType="SOIL_SMOKE" refNodeIndex="1" />
		   <node index="0>2|0|0|13|0|0|4" particleType="SOIL_SMOKE" refNodeIndex="2" />
           <node index="0>2|0|0|13|0|0|5" particleType="SOIL_SMOKE" refNodeIndex="1" />
		   
		   <node index="0>2|0|0|14|0|0|6" particleType="SOIL_CHUNKS" refNodeIndex="2" worldSpace="false"/>
           <node index="0>2|0|0|14|0|0|7" particleType="SOIL_CHUNKS" refNodeIndex="1" worldSpace="false"/>
		   <node index="0>2|0|0|12|0|0|6" particleType="SOIL_CHUNKS" refNodeIndex="2" worldSpace="false"/>
           <node index="0>2|0|0|12|0|0|7" particleType="SOIL_CHUNKS" refNodeIndex="1" worldSpace="false"/>
		   <node index="0>2|0|0|13|0|0|6" particleType="SOIL_CHUNKS" refNodeIndex="2" worldSpace="false"/>
           <node index="0>2|0|0|13|0|0|7" particleType="SOIL_CHUNKS" refNodeIndex="1" worldSpace="false"/>
    </groundParticle>
	
    <inputAttacherJoints>
        <inputAttacherJoint index="0>0" jointType="implement" topReferenceNode="0>1" lowerDistanceToGround="0.2" upperRotationOffset="12" upperDistanceToGround="1.3"/>
    </inputAttacherJoints>

	<implementLinks>
		<hose index="0>2|3" part="0>2|3|0" fixPoint="0>2|3|1" />
	</implementLinks>
	
	<speedRotatingParts>
        <speedRotatingPart index="0>2|0|0|11|0" radius="0.289" invertDirectionOnRotation="true" turnAnimLimit="0.2" />
    </speedRotatingParts>
	
	<foldingParts>
        <foldingPart componentJointIndex="0" anchorActor="0" animationName="foldPlough" speedScale="1.5" />
    </foldingParts>
	
	<animations>
        <!-- move wheel down/up -->
        <animation name="rotatePlough">
            <part node="0>2|0" startTime="0" endTime="6" startRot="0 0 0" endRot="0 0 -180" />
			<!-- wheel rot -->
            <part node="0>2|0|0|8" startTime="0" endTime="6" startRot="55 0 0" endRot="124 0 0" />
        </animation>
        <animation name="MaxLowered">
            <part node="0>2|1" startTime="0" endTime="1" startTrans="0 1.07 0" endTrans="0 0.72 0"/>
        </animation>
        <animation name="moveSupport">
			<part node="0>2|2" startTime="0" endTime="0.05" visibility="false" />
			<part node="0>2|3" startTime="0" endTime="0.05" visibility="true" />
			<part node="0>2|2" startTime="0.05" endTime="0.1" visibility="true" />
			<part node="0>2|3" startTime="0.05" endTime="0.1" visibility="false" />
        </animation>
		<animation name="foldPlough">
            <part node="0>2|0|0" startTime="0" endTime="2.5" startRot="0 0 0" endRot="0 40 0" />
        </animation>	
    </animations>
	
    <movingTools>
		<!-- main plough rotation-->
        <movingTool index="0>2|0"/>
		<!-- fold rotation -->
        <movingTool index="0>2|0|0"/>
            <dependentPart index="0>2|0|1"/>
            <dependentPart index="0>2|0|2"/>
		<movingTool index="0>2|0|0|8"/>
	</movingTools>
	
    <movingParts>
		<!-- fold cylinder -->
        <movingPart index="0>2|0|1" referencePoint="0>2|0|0|4" referenceFrame="0>2|0"/>
            <translatingPart index="0>2|0|1|0"/>
		<!-- fold cylinder2 -->
        <movingPart index="0>2|0|2" referencePoint="0>2|0|0|5" referenceFrame="0>2|0"/>
            <translatingPart index="0>2|0|2|0"/>
    </movingParts>
	
	<isDefaultLowered value="false"/>
    <needsLowering value="true" />
    <allowsLowering value="true" />
    <support animationName="moveSupport" />
    <rotationPart turnAnimationName="rotatePlough" />
	
	<washable dirtDuration="30" washDuration="1" workMultiplier="20" />
	
    <components count="1">
        <component1 centerOfMass="0 0.75 1" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>       
</vehicle>