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

    <storeData>
        <name>kuhn spreader</name>
        <specs>
            <workingWidth>24.0</workingWidth>
            <neededPower>20</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_fertilizer</function>
        </functions>
        <image>Textures/store.dds</image>
        <price>9000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KUHN</brand>
        <category>fertilizerSpreaders</category>
        <vertexBufferMemoryUsage>732220</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>125856</indexBufferMemoryUsage>
        <textureMemoryUsage>9787056</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_fertilizerSpreader</typeDesc>
        <filename>FertiMax.i3d</filename>
        <size width="3.5" length="4" />
        <speedLimit value="22" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="10" mass="560"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
            <turnedOn name="DEFAULT_IMPLEMENT_ON"/>
            <turnedOnSelected name="DEFAULT_IMPLEMENT_SELECTED_ON"/>
        </schemaOverlay>
    </base>

    <powerConsumer ptoRpm="450" neededMaxPtoPower="10"/>
	
	<wheels>
        <wheelConfigurations>			
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/260_70R15_3.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.22" repr="Left"                       forcePointRatio="1.00" initialCompression="10" suspTravel="0.13" spring="14" damper="25" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/AW305/260_70R15_3.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.22" repr="Right"                      forcePointRatio="1.00" initialCompression="10" suspTravel="0.13" spring="14" damper="25" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="400" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/AW309/500_50R17.xml" isLeft="true" hasTireTracks="true">
                        <physics restLoad="0.25" repr="Left"  forcePointRatio="1.00" initialCompression="20" suspTravel="0.10" spring="20" damper="10"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/AW309/500_50R17.xml" isLeft="false" hasTireTracks="true">
                        <physics restLoad="0.25" repr="Right"  forcePointRatio="1.00" initialCompression="20" suspTravel="0.10" spring="20" damper="10"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>			
        </wheelConfigurations>
				
        <rimColor>UNVERFETH_WHITE</rimColor>
		
        <hubs>
            <hub linkNode="Left"       filename="$data/shared/wheels/hubs/hub_n8_4.xml" isLeft="true"  scale="0.20 0.2 0.2" />
            <hub linkNode="Right"      filename="$data/shared/wheels/hubs/hub_n8_4.xml" isLeft="false" scale="0.20 0.2 0.2" />
        </hubs>
    </wheels>
	 
	<lights>
        <realLights>
            <high>
                <light node="0>8|5|3" lightTypes="0"/>
                <brakeLight node="0>8|5|3"/>
                <turnLightLeft node="0>8|5|1"/>
                <turnLightRight node="0>8|5|2"/>
            </high>
        </realLights>
        <defaultLights>
            <defaultLight shaderNode="0>8|5|0|0" lightTypes="0"/>
        </defaultLights>
        <brakeLights>
            <brakeLight shaderNode="0>8|5|0|0" lightTypes="0"/>
        </brakeLights>
        <turnLights>
            <turnLightLeft shaderNode="0>8|5|0|4" toggleVisibility="true"/>
            <turnLightRight shaderNode="0>8|5|0|3" toggleVisibility="true"/>
        </turnLights>
        <reverseLights>
            <reverseLight shaderNode="0>8|5|0|2" toggleVisibility="true"/>
        </reverseLights>
    </lights>
	

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" >
            <area startNode="0>8|3|0|0" widthNode="0>8|3|0|1" heightNode="0>8|3|0|2" />
        </workArea>
    </workAreas>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" rootNode="FertiMax_main_component1" attacherHeight="1.0594" detachNode="ptoDetachNode"/>
        </inputAttacherJoints>
        <brakeForce>0.45</brakeForce>
        <support animationName="moveSupport" />		
    </attachable>
	
    <powerTakeOffs>
        <input inputAttacherJointIndices="1" detachNode="ptoDetachNode" inputNode="ptoInput" aboveAttacher="false" />
    </powerTakeOffs>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <unloading width="24" offset="0 0 0" />
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="fertilizer lime" capacity="3200" >
                        <exactFillRootNode node="0>8|1|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>8|1|0" maxDelta="2.3" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
    </fillVolume>

    <sprayer fillUnitIndex="1">
        <usageScales workingWidth="24" scale="1" />
        <effects>
            <effectNode effectNode="0>8|2|0|0" delay="0" materialType="spreader" materialTypeId="1" />
        </effects>
        <animationNodes>
            <animationNode node="0>8|0|1"  		rotSpeed="-1500" 				turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="0>8|0|0" 		rotSpeed="1500" 				turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="rotationPart01"  	rotSpeed="1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="rotationPart02" 	rotSpeed="-1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="rotationPart03" 	rotSpeed="-1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="rotationPart04" 	rotSpeed="1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
			 <animationNode node="0>9|1"  	rotSpeed="1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="0>9|0|2" 	rotSpeed="-1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="0>9|0|0|2" 	rotSpeed="-1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
            <animationNode node="0>9|0|0|0|0" 	rotSpeed="1000" 	rotAxis="3" turnOnFadeTime="0.3" turnOffFadeTime="3" />
        </animationNodes>
    </sprayer>

    <turnOnVehicle>
        <sounds>
            <work template="DEFAULT_SPREADER" linkNode="FertiMax_main_component1" />
        </sounds>
    </turnOnVehicle>



    <ai>
        <needsLowering value="false" />
        <areaMarkers leftNode="areaMarkerLeft" rightNode="areaMarkerRight" backNode="areaMarkerBack" />
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack" />
    </ai>
	
    <foliageBending>
        <bendingNode minX="-0.9" maxX="0.9" minZ="-1.6" maxZ="1.2" yOffset="0.6" />
    </foliageBending>

    <animations>	
        <animation name="moveSupport">
            <part node="supportArm" startTime="0.0" endTime="0.15" startTrans="0 0.6 0" endTrans="0 0 0" />
            <part node="cab" 		startTime="0.0" endTime="0.01" startRot="0 0 0" endRot="-90 0 0" />			
            <part node="electricC"  startTime="0"    endTime="0.01" visibility="true" />
            <part node="electricC" 	startTime="0.01"    endTime="0.015" visibility="false" />
        </animation>		
    </animations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="FertiMax_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0" />
        <i3dMapping id="ptoInput" node="0>0|0" />
        <i3dMapping id="ptoDetachNode" node="0>0|1" />
        <i3dMapping id="Fertimax" node="0>1" />
        <i3dMapping id="Rotors" node="0>1|0" />
        <i3dMapping id="leftRoll" node="0>1|0|0" />
        <i3dMapping id="rightRoll" node="0>1|0|1" />
        <i3dMapping id="Support_main" node="0>1|1" />
        <i3dMapping id="supportArm" node="0>1|1|0" />
        <i3dMapping id="colSupport" node="0>1|1|0|0" />
        <i3dMapping id="fillVolume" node="0>1|2" />
        <i3dMapping id="exactFillRootNode" node="0>1|3" />
        <i3dMapping id="decals" node="0>1|4" />
        <i3dMapping id="effect" node="0>1|5" />
        <i3dMapping id="effectNode" node="0>1|5|0" />
        <i3dMapping id="workArea" node="0>1|6" />
        <i3dMapping id="workAreaStart" node="0>1|6|0" />
        <i3dMapping id="workAreaWidth" node="0>1|6|1" />
        <i3dMapping id="workAreaHeight" node="0>1|6|2" />
        <i3dMapping id="ai" node="0>1|7" />
        <i3dMapping id="areaMarker" node="0>1|7|0" />
        <i3dMapping id="areaMarkerLeft" node="0>1|7|0|0" />
        <i3dMapping id="areaMarkerRight" node="0>1|7|0|1" />
        <i3dMapping id="areaMarkerBack" node="0>1|7|0|2" />
        <i3dMapping id="sizeMarker" node="0>1|7|1" />
        <i3dMapping id="sizeMarkerLeft" node="0>1|7|1|0" />
        <i3dMapping id="sizeMarkerRight" node="0>1|7|1|1" />
        <i3dMapping id="sizeMarkerBack" node="0>1|7|1|2" />
        <i3dMapping id="lights" node="0>1|8" />
        <i3dMapping id="backLight" node="0>1|8|0" />
        <i3dMapping id="backLeft" node="0>1|8|0|0" />
        <i3dMapping id="backRight" node="0>1|8|0|1" />
        <i3dMapping id="sidemarkerLeft" node="0>1|8|0|2" />
        <i3dMapping id="sidemarkerRight" node="0>1|8|0|3" />
        <i3dMapping id="turnLightLeftBack" node="0>1|8|1" />
        <i3dMapping id="turnLightRightBack" node="0>1|8|2" />
        <i3dMapping id="backLightsHigh" node="0>1|8|3" />
        <i3dMapping id="backLightsHigh1" node="0>1|8|3|0" />
        <i3dMapping id="grid" node="0>1|9" />
        <i3dMapping id="collusions" node="0>2" />
        <i3dMapping id="col1" node="0>2|0" />
        <i3dMapping id="col2" node="0>2|1" />
        <i3dMapping id="col3" node="0>2|2" />
        <i3dMapping id="Wheels" node="0>3" />
        <i3dMapping id="Left" node="0>3|0" />
        <i3dMapping id="Right" node="0>3|1" />
        <i3dMapping id="startNode" node="0>4" />
        <i3dMapping id="startJoint" node="0>4|0" />
        <i3dMapping id="rotationPart01" node="0>4|1" />
        <i3dMapping id="endJoint" node="0>4|0|0" />
        <i3dMapping id="scalePart" node="0>4|0|1" />
        <i3dMapping id="rotationPart02" node="0>4|0|1" />
        <i3dMapping id="linkNode" node="0>4|0|0|0" />
        <i3dMapping id="rotationPart04" node="0>4|0|0|0|0" />
        <i3dMapping id="translationPart" node="0>4|0|0|1" />
        <i3dMapping id="decal" node="0>4|0|0|1|0" />
        <i3dMapping id="rotationPart03" node="0>4|0|0|2" />
        <i3dMapping id="upperLink" node="0>5" />
        <i3dMapping id="upperLinkHead" node="0>5|0" />
        <i3dMapping id="decals" node="0>5|1" />
        <i3dMapping id="decals1" node="0>5|2" />
        <i3dMapping id="warntafel" node="0>6" />
        <i3dMapping id="connectors" node="0>7" />
        <i3dMapping id="electric" node="0>7|0" />
        <i3dMapping id="electricHose" node="0>7|0|0" />
        <i3dMapping id="cab" node="0>7|0|1" />
        <i3dMapping id="decals" node="0>7|0|2" />
        <i3dMapping id="electricC" node="0>7|1" />		
    </i3dMappings>
</vehicle>
