<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fertilizingSowingMachine" 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>Oliver Drill</name>
        <specs>
            <neededPower>60</neededPower>
            <workingWidth>6</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_sowingMachine</function>
        </functions>
        <image>store_OliverDrill.png</image>
        <price>700</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>OLIVER</brand>
        <category>seeders</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2321920</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>332800</indexBufferMemoryUsage>
        <textureMemoryUsage>1966080</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_sowingMachine</typeDesc>
        <filename>OliverDrill.i3d</filename>
        <size width="4" length="4" lengthOffset="1"/>
        <speedLimit value="16"/>
        <components>
            <component centerOfMass="0 0.85 0.3" solverIterationCount="10" mass="800"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>	
	
	<wheels>
		<wheelConfigurations>
			<wheelConfiguration name="$l10n_configuration_duoRib" price="0" brand="TRELLEBORG" saveId="DEFAULT">
                <wheels>
                    <wheel filename="Wheels/6_00__16.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.7" repr="0>1|0"  forcePointRatio="0.3" initialCompression="40" suspTravel="0.05" spring="80" damper="20" rotationDamping="0.001"/>
                    </wheel>
                    <wheel filename="Wheels/6_00__16.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.7" repr="0>1|1" forcePointRatio="0.3" initialCompression="40" suspTravel="0.05" spring="80" damper="20" rotationDamping="0.001"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <hub linkNode="0>1|0"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.06 0.2 0.2" />
            <hub linkNode="0>1|1" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.06 0.2 0.2" />
        </hubs>
		
	</wheels>

    <speedRotatingParts>
        <speedRotatingPart node="0>2|0" radius="0.6" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
        <speedRotatingPart node="0>2|1" radius="0.7" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
        <speedRotatingPart node="0>2|7" radius="0.7" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
	<speedRotatingPart shaderNode="0>2|8"   scrollScale="0 -1" groundReferenceNodeIndex="1" scrollLength="5" shaderParameterComponent="2" useRotation="false" onlyActiveWhenLowered="true"/>
    	<speedRotatingPart shaderNode="0>2|9|1" radius="-0.162345" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
    	<speedRotatingPart shaderNode="0>2|10|1" radius="-0.162345" groundReferenceNodeIndex="1" onlyActiveWhenLowered="true"/>
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
	    <inputAttacherJoint node="0>0|0" jointType="trailerLow" attacherHeight="0.49"/>
        </inputAttacherJoints>
        <brakeForce force="0.4"/>
        <sounds>
            <active file="$data/sounds/tools/sowing/generalRattle_02.wav" innerRadius="10" outerRadius="50" volumeScale="3.6" isLocalSound="true" pitchScale="0.8">
                <volume indoor="0.7" outdoor="0.9" >
                    <modifier type="WHEEL_SUSPENSION" value="-0.06" modifiedValue="0.6"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.04" modifiedValue="0.4"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.02" modifiedValue="0.10"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.01" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.00" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.01" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.02" modifiedValue="0.10"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.04" modifiedValue="0.4"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.06" modifiedValue="0.6"/>

                    <modifier type="SPEED" value="0.0" modifiedValue="0.0"/>
                    <modifier type="SPEED" value="2.0" modifiedValue="1.0"/>
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0"/>
                </volume>
                <lowpassCutoffFrequency indoor="250" outdoor="20000" />
                <lowpassGain indoor="0.5" outdoor="1" />
            </active>
        </sounds>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>2|4|1"  length="1.4" diameter="0.02" straighteningFactor="1">
           <objectChange node="0>0|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>2|4|2" length="1.4" diameter="0.02" straighteningFactor="1">
            <objectChange node="0>0|1|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <powerConsumer forceNode="0>" maxForce="7" />

    <groundReferenceNodes>
        <groundReferenceNode node="0>5|3"  forceFactor="1" threshold="0.15" depthNode="0>5|3"/>
    </groundReferenceNodes>

    <workAreas>
        <workArea type="sowingMachine" functionName="processSowingMachineArea">
            <area startNode="0>5|0" widthNode="0>5|1" heightNode="0>5|2"/>
            <groundReferenceNode index="1"/>
            <onlyActiveWhenLowered value="true"/>
        </workArea>
    </workAreas>

    <workParticles>
	<effect workAreaIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="0>2|9|2">
                <motionPathEffect textureFilename="textures/longDiscArray.dds" numRows="30" rowLength="18" minFade="0.07" density="1" shapeScale="0.5" maxShapeScale="1"/>
            </effectNode>
    	    <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="0>2|10|2">
                <motionPathEffect textureFilename="textures/longDiscArray.dds" numRows="30" rowLength="18" minFade="0.07" density="1" shapeScale="0.5" maxShapeScale="1"/>
            </effectNode>
        </effect>
        <particle>
            <node node="0>7|0" refNodeIndex="1" particleType="SOIL_SMOKE" emitCountScale="1.0" />
        </particle>
    </workParticles>

    <sprayer fillUnitIndex="2" unloadInfoIndex="2" fillVolumeIndex="2" >
        <usageScales workingWidth="6" scale="1" />
    </sprayer>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" detachingMinLimit="0.05" detachingMaxLimit="1" foldMiddleAnimTime="1">
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="0>2|9" startTime="0" endTime="2" startRot="-29 0 0" endRot="-15 0 0"/>
            <part node="0>2|10" startTime="0" endTime="2" startRot="-34 0 0" endRot="-18 0 0"/>
            <part node="0>2|3" startTime="0" endTime="2" startRot="0 0 0" endRot="-25 0 0"/>
	    <part node="0>2|2" startTime="0" endTime="2" startRot="10 0 0" endRot="-20 0 0"/>
        </animation>
	<animation name="toggleCover">
      		<part startTime="0" endTime="1" node="0>6|0" startRot="0 0 0" endRot="75 0 0" />
        </animation>
        <animation name="toggleCover1">
      		<part startTime="0" endTime="1" node="0>6|1" startRot="0 0 0" endRot="70 0 0" />
        </animation>
    </animations>

    <cylindered>
        <movingTools>
	    <movingTool node="0>6|0">
                <dependentPart node="0>2|6" />
            </movingTool>
	    <movingTool node="0>6|1">
                <dependentPart node="0>2|5" />
            </movingTool>
	    <movingTool node="0>2|2">
                <dependentPart node="0>2|2|0" />
                <dependentPart node="0>2|2|1" />
                <dependentPart node="0>2|2|2" />
            </movingTool>
	    <movingTool node="0>2|3">
                <dependentPart node="0>2|4" />
            </movingTool>
        </movingTools>

        <movingParts>
		<movingPart node="0>2|6" referencePoint="0>6|0|0" referenceFrame="0>6|0|0"/>
		<movingPart node="0>2|5" referencePoint="0>6|1|0" referenceFrame="0>6|1|0"/>
    		<movingPart node="0>2|2|0" referencePoint="0>2|3|0" referenceFrame="0>2|3|0"/>
		<movingPart node="0>2|2|1" referencePoint="0>2|9|0" referenceFrame="0>2|9|0">
    			<dependentPart node="0>2|2|1|0" />
    		</movingPart>
		<movingPart node="0>2|2|2" referencePoint="0>2|10|0" referenceFrame="0>2|10|0">
    			<dependentPart node="0>2|2|2|0" />
    		</movingPart>
                <movingPart node="0>8|0|0" referencePoint="0>2|9|4" referenceFrame="0>2|9|4" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>
                <movingPart node="0>8|0|1" referencePoint="0>2|10|4" referenceFrame="0>2|10|4" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>

		<movingPart node="0>2|2|1|0" referencePoint="0>2|9|0" referenceFrame="0>2|9|0" scaleZ="true"/>
		<movingPart node="0>2|2|2|0" referencePoint="0>2|10|0" referenceFrame="0>2|10|0" scaleZ="true"/>
    		<movingPart node="0>2|4" referencePoint="0>2|3|1" referenceFrame="0>2|3|1" invertZ="true" playSound="true">
                	<translatingPart node="0>2|4|0" />
                </movingPart>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <unloading width="12" offset="0 0 0" />
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="seeds" capacity="2000">
                        <exactFillRootNode node="0>3|6" extraEffectDistance="0.6"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="fertilizer" capacity="1400">
                        <exactFillRootNode node="0>3|7" extraEffectDistance="0.6"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|0"      fillUnitIndex="1" maxDelta="0.1" maxAllowedHeapAngle="6"/>
                    <volume node="0>3|1|0" fillUnitIndex="2" maxDelta="0.1" maxAllowedHeapAngle="8"/>
		    <volume node="0>3|1|1" fillUnitIndex="2" maxDelta="0.1" maxAllowedHeapAngle="8"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>3|2" width="0.4" length="0.1"/>
            </unloadInfo>
            <unloadInfo>
                <node node="0>3|3" width="0.4" length="0.1"/>
            </unloadInfo>
        </unloadInfos>
        <loadInfos>
            <loadInfo>
                <node node="0>3|4" width="0.4" length="0.1"/>
            </loadInfo>
            <loadInfo>
                <node node="0>3|5" width="0.4" length="0.1"/>
            </loadInfo>
        </loadInfos>
    </fillVolume>

    <sowingMachine fillUnitIndex="1">
        <seedFruitTypeCategories>sowingMachine</seedFruitTypeCategories>
        <needsActivation value="true"/>
        <useDirectPlanting value="false" />
        <fieldGroundType value="SOWN" />

        <sounds>
            <work      template="defaultSowingWork"         linkNode="0>" volumeScale="1.3"/>
        </sounds>
    </sowingMachine>
    <cover>
        <coverConfigurations>
            <coverConfiguration >
                <cover openAnimation="toggleCover" fillUnitIndices="1" />
                <cover openAnimation="toggleCover1" fillUnitIndices="2" />
            </coverConfiguration>
        </coverConfigurations>
    </cover>

    <turnOnVehicle turnOffIfNotAllowed="true"/>

    <ai>
        <needsLowering value="true"/>
        <areaMarkers leftNode="0>4|0" rightNode="0>4|1" backNode="0>4|2"/>
        <collisionTrigger node="0>4|3" width="4.2" height="2.0"/>
        <allowTurnBackward value="false"/>
        <agentAttachment width="4" height="2" length="4.5" lengthOffset="1"/>
    </ai>

     <foliageBending>
        <bendingNode minX="-1.85" maxX="1.85" minZ="-0.6" maxZ="0.7" yOffset="0.25" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="0.7" maxZ="1.9" yOffset="0.4" />
    </foliageBending>

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