<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="forageWagon" 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>$l10n_Recolhedorduplo</name>
        <specs>
            <neededPower>20</neededPower>
			<workingWidth>1.4</workingWidth>
			<combination xmlFilename="Husqvarna_TS146XK.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_forageWagon</function>
        </functions>
        <storePacks>
            <storePack>STARTER_GRASS</storePack>
        </storePacks>
        <image>store_Husqvarna_Recolhedor.dds</image>
        <price>329</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>HUSQVARNA</brand>
        <category>loaderWagons</category>
        <vertexBufferMemoryUsage>359680</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>76800</indexBufferMemoryUsage>
        <textureMemoryUsage>524288</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_forageWagon</typeDesc>
        <filename>Husqvarna_Recolhedor.i3d</filename>
        <size width="2" length="2" lengthOffset="0.3"/>
        <speedLimit value="20" />
        <components maxMass="200">
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="50" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="0.9" />
        <mapHotspot type="TRAILER" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|0|0" jointType="Husqvarna" />
			<distanceToGround lower="0" upper="0" />
        </inputAttacherJoints>
    </attachable>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="0>0|1|0|0|0" filename="cano.xml"/>
    </powerTakeOffs>

    <groundReferenceNodes>
        <groundReferenceNode node="0>0|2|3" threshold="0.4" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="forageWagon" functionName="processForageWagonArea" disableBackwards="true">
            <area startNode="0>0|2|0" widthNode="0>0|2|1" heightNode="0>0|2|2" />
            <groundReferenceNode index="1" />
        </workArea>
    </workAreas>

    <animations>
        <animation name="rotatePickup">
            <part node="0>0" startTime="0" endTime="0.5" startRot="0 0 0" endRot="0 0 0" />
        </animation>
		<animation name="tampa">
            <part node="0>0|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="20 0 0" />
            <part node="0>0|1|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="-15 0 -4" />
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="1000">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="1000" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="100" params="2000">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="2000" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="200" params="3000">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="3000" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="300" params="4000">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="3500" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <pickup>
        <animation name="rotatePickup" isDefaultLowered="false"/>
    </pickup>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|4|0" fillUnitIndex="1" maxDelta="0.4" />
                    <volume node="0>0|4|6" fillUnitIndex="1" maxDelta="0.4" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="0>0|4|3" width="1.4" length="1.0" />
            </unloadInfo>
        </unloadInfos>

        <loadInfos>
            <loadInfo>
                <node node="0>0|4|4" width="1.4" length="1.0" />
            </loadInfo>
        </loadInfos>
    </fillVolume>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration name="$l10n_configuration_valueDefault" price="0">
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tampa" speedScale="1.0" startTipTime="0.5" />
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <dischargeable>
        <dischargeNode node="0>0|4|2" emptySpeed="200" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="1.1" length="0.2" />

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|5|1" materialType="unloading" delay="0.1" fadeTime="0.2" extraDistanceNode="0>0|4|2"/>
                </effectNode>
                <effectNode effectNode="0>0|5|0" materialType="unloadingSmoke" fadeTime="0.5"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <forageWagon workAreaIndex="1" fillUnitIndex="1" loadInfoIndex="1" maxPickupLitersPerSecond="350"/>

    <turnOnVehicle turnOffIfNotAllowed="true">
        <sounds>
            <work template="FORAGE_WAGON_01" linkNode="0>0|1|0|0" volumeScale="1.6"/>
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="false" />
		<allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="7"/>
        <agentAttachment jointNode="0>0|0|0" width="2.5" height="3.0" length="5.5" lengthOffset="0.7"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.1" maxX="0.1" minZ="-0.1" maxZ="0.1" yOffset="0.5" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<configurationSets>
        <configurationSet name="$l10n_configuration_capacityX" price="0" params="1000" isDefault="true">
            <configuration name="fillUnit"   index="1" />
        </configurationSet>
		<configurationSet name="$l10n_configuration_capacityX" price="100" params="2000">
            <configuration name="fillUnit"   index="2" />
        </configurationSet>
		<configurationSet name="$l10n_configuration_capacityX" price="200" params="3000">
            <configuration name="fillUnit"   index="3" />
        </configurationSet>
		<configurationSet name="$l10n_configuration_capacityX" price="300" params="4000">
            <configuration name="fillUnit"   index="4" />
        </configurationSet>
    </configurationSets>
</vehicle>
