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

    <storeData>
        <name>$l10n_name</name>
        <specs>
            <neededPower>85</neededPower>
            <workingWidth>10.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_slurrySpreader</function>
        </functions>
        <image>store.dds</image>
        <price>13000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>slurryTanks</category>
        <shopTranslationOffset>0</shopTranslationOffset>
        <shopRotationOffset>0</shopRotationOffset>
        <vertexBufferMemoryUsage>2030272</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>411714</indexBufferMemoryUsage>
        <textureMemoryUsage>4194536</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureBarrel</typeDesc>
        <filename>LizardManure.i3d</filename>
        <size width="2.6" length="7.0"/>
        <speedLimit value="17" />
        <components>
            <component centerOfMass="0 0.9 0.8" solverIterationCount="10" mass="1000" />
			<component centerOfMass="0 0 0" solverIterationCount="10" mass="500"/>
			<component centerOfMass="0 0 0" solverIterationCount="10" mass="500"/>
			<joint component1="1" component2="2"  node="1>" rotLimit="10 0 0" transLimit="0 0 0"/>
			<joint component1="1" component2="3" node="2>" rotLimit="10 0 0" transLimit="0 0 0"/>
        </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>

    <wheels>
        <wheelConfigurations>
		<wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="MICHELIN">
                <wheels autoRotateBackSpeed="2.7">
                    <wheel filename="texturas/pneu.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.9" repr="1>2" forcePointRatio="0.5" initialCompression="50" suspTravel="0.1" spring="80" damper="40"/>
                    </wheel>
                    <wheel filename="texturas/pneu.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.9" repr="1>1" forcePointRatio="0.5" initialCompression="50" suspTravel="0.1" spring="80" damper="40"/>
                    </wheel>
                    <wheel filename="texturas/pneu.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.9" repr="2>2" forcePointRatio="0.5" initialCompression="50" suspTravel="0.1" spring="80" damper="40"/>
                    </wheel>
                    <wheel filename="texturas/pneu.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="0.9" repr="2>1" forcePointRatio="0.5" initialCompression="50" suspTravel="0.1" spring="80" damper="40"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>2" jointType="trailerLow" attacherHeight="0.4" />
        </inputAttacherJoints>
        <brakeForce>0.3</brakeForce>
        <support animationName="moveSupport" />
    </attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="0>15" aboveAttacher="false" detachNode="0>21"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="400" neededMinPtoPower="3" neededMaxPtoPower="6" />

    <workAreas>
        <workArea type="sprayer" functionName="processSprayerArea" disableBackwards="false" requiresGroundContact="false" >
            <area startNode="0>5" widthNode="0>6" heightNode="0>7" />
        </workArea>
    </workAreas>
	
	<sprayer>
        <usageScales workingWidth="10.0" scale="1" />
        <effects>
            <effectNode effectNode="0>14|0" delay="0.5" materialType="slurrySideToSide" fadeOutTime="2" fadeInTime="2" />
        </effects>
    </sprayer>

    <animations>
        <animation name="moveSupport">
            <part node="0>4" startTime="0" endTime="0.5" startRot="90 -21 0" endRot="0 -21 0" />
			<part node="0>4|0" startTime="0" endTime="0.1" startTrans="0 0.063 0" endTrans="0 -0.255 0"/>
        </animation>
    </animations>

    <cylindered>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="slurryTank" capacity="6000" >
                        <exactFillRootNode node="0>16" />
                    </fillUnit>
                    <fillTrigger consumePtoPower="true"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillTriggerVehicle triggerNode="0>17" fillUnitIndex="1" litersPerSecond="300"/>

    <dischargeable>
        <dischargeNode node="0>18" emptySpeed="300" fillUnitIndex="1" unloadInfoIndex="3" >
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="0>19" />
        </dischargeNode>
    </dischargeable>

    <turnOnVehicle>
        <turnedOnAnimation name="sprayerAnimation" />
        <activatableFillUnits>
            <activatableFillUnit index="1" />
        </activatableFillUnits>

    </turnOnVehicle>

    <ai>
        <areaMarkers leftNode="0>5" rightNode="0>6" backNode="0>7"/>
        <sizeMarkers leftNode="0>20|0" rightNode="0>20|1" backNode="0>20|2" />
        <allowTurnBackward value="false" />
        <turningRadiusLimitation rotationJointNode="0>2" wheelIndices="1 2" />
    </ai>

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-3.1" maxZ="2.2" yOffset="0.7" />
    </foliageBending>

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