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

    <storeData>
        <name>P431</name>
        <specs>
            <neededPower>40</neededPower>
            <workingWidth>3</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_obsypnik</function>
        </functions>
        <image>store481.dds</image>
        <price>750</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>Agromet</brand>
        <category>potatoHarvesting</category>
    </storeData> 

    <base>
        <typeDesc>$l10n_typeDesc_obsypnik</typeDesc>
        <filename>Obsypnik.i3d</filename>
        <size width="4" length="1" lengthOffset="-0.1"/>
        <speedLimit value="8"/>
        <components>
            <component centerOfMass="0 0.65 -0.05" solverIterationCount="4" mass="112" />
		    <component centerOfMass="0 0.1 -0.44" solverIterationCount="15" mass="22"/>
			<component centerOfMass="0 0.1 -0.44" solverIterationCount="15" mass="22"/>
			<component centerOfMass="0 0.1 -0.44" solverIterationCount="15" mass="22"/>
			<component centerOfMass="0 0.1 -0.44" solverIterationCount="15" mass="22"/>
			<component centerOfMass="0 0.1 -0.44" solverIterationCount="15" mass="22"/>
			<joint component1="1" component2="2" node="0>0|2|0|3" rotLimit="0 0 0" transLimit="0 0.063 0"/>
			<joint component1="1" component2="3" node="0>0|2|1|3" rotLimit="0 0 0" transLimit="0 0.063 0"/>
			<joint component1="1" component2="4" node="0>0|2|2|3" rotLimit="0 0 0" transLimit="0 0.063 0"/>
			<joint component1="1" component2="5" node="0>0|2|3|3" rotLimit="0 0 0" transLimit="0 0.063 0"/>
			<joint component1="1" component2="6" node="0>0|2|4|3" rotLimit="0 0 0" transLimit="0 0.0630 0"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="DEFAULT_IMPLEMENT"/>
    </base>
	
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels hasSurfaceSounds="false">
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="0>0|1|1" forcePointRatio="0.5" radius="0.15" width="0.2" mass="0.005" initialCompression="30" suspTravel="0.1" spring="9" damper="20" rotationDamping="0.001" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="1>0|3|0" forcePointRatio="0.5" radius="0.11" width="0.2" mass="0.001" initialCompression="30" suspTravel="0.1" spring="9" damper="20" rotationDamping="0.001" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="2>0|3|0" forcePointRatio="0.5" radius="0.11" width="0.2" mass="0.001" initialCompression="30" suspTravel="0.1" spring="9" damper="20" rotationDamping="0.001" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="3>0|3|0" forcePointRatio="0.5" radius="0.11" width="0.2" mass="0.001" initialCompression="30" suspTravel="0.1" spring="9" damper="20" rotationDamping="0.001" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="4>0|3|0" forcePointRatio="0.5" radius="0.11" width="0.2" mass="0.001" initialCompression="30" suspTravel="0.1" spring="9" damper="20" rotationDamping="0.001" />
                    </wheel>
                    <wheel hasParticles="false" >
                        <physics rotSpeed="0" restLoad="0.4" repr="5>0|3|0" forcePointRatio="0.5" radius="0.11" width="0.2" mass="0.001" initialCompression="30" suspTravel="0.1" spring="9" damper="20" rotationDamping="0.001" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
    <speedRotatingParts>
        <speedRotatingPart node="0>0|1|0" radius="0.2" wheelIndex="1" /> 
		<speedRotatingPart node="1>0|3" radius="0.2" wheelIndex="2" />
		<speedRotatingPart node="2>0|3" radius="0.2" wheelIndex="3" />
		<speedRotatingPart node="3>0|3" radius="0.2" wheelIndex="4" />
		<speedRotatingPart node="4>0|3" radius="0.2" wheelIndex="5" />
		<speedRotatingPart node="5>0|3" radius="0.2" wheelIndex="6" />
    </speedRotatingParts>
	
    <powerConsumer forceNode="0>" maxForce="7" neededMaxPtoPower="0"/>

    <groundReferenceNodes>
    <groundReferenceNode node="0>0|5|0" forceFactor="1" threshold="0.18" depthNode="0>0|5|0"/>
	<groundReferenceNode node="0>0|5|3" forceFactor="1" threshold="0.18" depthNode="0>0|5|3"/>
    </groundReferenceNodes>
	
    <workParticles>
        <effect workAreaIndex="1">
            <effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="1>0|5">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
			<effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="2>0|5">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
			<effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="3>0|5">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
			<effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="4>0|5">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
			<effectNode effectClass="CultivatorMotionPathEffect" effectType="CULTIVATOR" linkNode="5>0|5">
                <motionPathEffect textureFilename="$data/effects/cultivator/arrays/sharedCultivatorSweepArray01.dds" numRows="20" rowLength="18" minFade="0.07" isCultivatorSweepEffect="true" />
            </effectNode>
        </effect>
        <particle>
            <node node="0>0|5|2" refNodeIndex="2" particleType="SOIL_SMOKE" adjustColor="true"/>
			<node node="0>0|5|2" refNodeIndex="2" particleType="weederGrass" adjustColor="true" emitCountScale="2"/>
        </particle>
    </workParticles>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|0|0" jointType="implement" topReferenceNode="0>0|0|1">
                <distanceToGround lower="0.40" upper="1.3"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.1"/>
    </attachable>
	
    <cylindered>
		<movingParts>
		    <movingPart node="0>0|2|0|0" referencePoint="1>0|1" referenceFrame="1>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
		    <movingPart node="0>0|2|0|1" referencePoint="1>0|0" referenceFrame="1>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
			<movingPart node="0>0|2|0|2" referencePoint="1>0|2" referenceFrame="1>0" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>
			
		    <movingPart node="0>0|2|1|0" referencePoint="2>0|1" referenceFrame="2>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
		    <movingPart node="0>0|2|1|1" referencePoint="2>0|0" referenceFrame="2>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
			<movingPart node="0>0|2|1|2" referencePoint="2>0|2" referenceFrame="2>0" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>
			
		    <movingPart node="0>0|2|2|0" referencePoint="3>0|1" referenceFrame="3>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
		    <movingPart node="0>0|2|2|1" referencePoint="3>0|0" referenceFrame="3>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
			<movingPart node="0>0|2|2|2" referencePoint="3>0|2" referenceFrame="3>0" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>
			
		    <movingPart node="0>0|2|3|0" referencePoint="4>0|1" referenceFrame="4>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
		    <movingPart node="0>0|2|3|1" referencePoint="4>0|0" referenceFrame="4>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
			<movingPart node="0>0|2|3|2" referencePoint="4>0|2" referenceFrame="4>0" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>
			
		    <movingPart node="0>0|2|4|0" referencePoint="5>0|1" referenceFrame="5>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
		    <movingPart node="0>0|2|4|1" referencePoint="5>0|0" referenceFrame="5>0" isActiveDirty="true" scaleZ="false" maxUpdateDistance="50"/>
			<movingPart node="0>0|2|4|2" referencePoint="5>0|2" referenceFrame="5>0" isActiveDirty="true" scaleZ="true" maxUpdateDistance="50"/>		
		</movingParts>
    </cylindered>
	

	
    <workAreas>
		<workArea type="sprayer" functionName="processSprayerArea" disableBackwards="true" needsSetIsTurnedOn="false" requiresOwnedFarmland="true" requiresGroundContact="true" >
            <area startNode="0>0|3|0" widthNode="0>0|3|1" heightNode="0>0|3|2"/>
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>					
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="FERTILIZER" startFillType="FERTILIZER" startFillLevel="50" showOnHud="false" showInShop="false">  
					</fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
    <sprayer fillUnitIndex="1">
        <usageScales workingWidth="0" scale="0"/>

    </sprayer>
	
    <animations>
        <animation name="moveSupport">
            <part node="5>0|4|0" startTime="0" endTime="0.3" startTrans="0 0.10 0" endTrans="0 0 0"/>
			<part node="4>0|4|0" startTime="0" endTime="0.3" startTrans="0 0.10 0" endTrans="0 0 0"/>
			<part node="3>0|4|0" startTime="0" endTime="0.3" startTrans="0 0.10 0" endTrans="0 0 0"/>
			<part node="2>0|4|0" startTime="0" endTime="0.3" startTrans="0 0.10 0" endTrans="0 0 0"/>
			<part node="1>0|4|0" startTime="0" endTime="0.3" startTrans="0 0.10 0" endTrans="0 0 0"/>
			<part node="0>0|0|2|0" startTime="0" endTime="0.3" startTrans="-0.05 0.3 0.555" endTrans="-0.05 0.101 0.555"/>
			<part node="0>0|0|2|1" startTime="0" endTime="0.3" startTrans="-0.05 0.3 -0.24" endTrans="-0.05 -0.056 -0.24"/>
        </animation>
    </animations>
	
    <ai>
        <needsLowering value="true"/>
		<agentAttachment jointNode="0>0|0|0" rotCenterWheelIndices="1 2" width="4" length="1" lengthOffset="-0.1"/>
        <areaMarkers leftNode="0>0|4|0" rightNode="0>0|4|1" backNode="0>0|4|2"/>
    </ai>
	
    <baseMaterial>
	    <material name="poprawkatablic" baseNode="0>0">
			<shaderParameter name="colorMat0" value="0.18 0.1 0.1 7"/> 
			<shaderParameter name="colorMat1" value="0.11 0.11 0.11 7"/>
        </material>
        <material name="Obsypnik_mat" baseNode="0>0|1|0">
            <shaderParameter name="colorMat0" value="0.18 0.1 0.1 7"/> 
			<shaderParameter name="colorMat1" value="0.11 0.11 0.11 7"/>
        </material>
		<material name="poprawka" baseNode="1>0|3">
			<shaderParameter name="colorMat1" value="0.11 0.11 0.11 7"/>
        </material>
    </baseMaterial>
	
	<baseMaterialConfigurations useDefaultColors="false" defaultColorIndex="0">
	    <baseMaterialConfiguration name="$l10n_Red"     color="0.6 0.035 0.02 7"/>	
		<baseMaterialConfiguration name="$l10n_Red"     color="0.3 0.05 0.05 7"/>
        <baseMaterialConfiguration name="$l10n_Brown"   color="0.18 0.1 0.1 7"/>
		<baseMaterialConfiguration name="$l10n_Gray"    color="0.11 0.11 0.11 7"/>
	    
		<material name="poprawkatablic"    shaderParameter="colorMat0"/>
        <material name="Obsypnik_mat"    shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>
	
	<designMaterialConfigurations price="100" useDefaultColors="false" defaultColorIndex="0">
		<designMaterialConfiguration name="$l10n_Red"     color="0.6 0.035 0.02 7"/>
	    <designMaterialConfiguration name="$l10n_Red"   color="0.3 0.05 0.05 7"/> 
        <designMaterialConfiguration name="$l10n_Brown"   color="0.18 0.1 0.1 7"/>
        <designMaterialConfiguration name="$l10n_Gray"   color="0.11 0.11 0.11 7"/> 
		<designMaterialConfiguration name="$l10n_Gray"   color="0.07 0.07 0.07 7"/> 
			
		<material name="poprawka"     shaderParameter="colorMat1" />
		<material name="Obsypnik_mat"     shaderParameter="colorMat1" />
		
	</designMaterialConfigurations>	
	
	<foliageBending>
        <bendingNode minX="-1.45" maxX="1.45" minZ="-0.25" maxZ="0.67" yOffset="0.6" />
    </foliageBending>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

</vehicle>