<?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_Recolhedortriplo</name>
        <specs>
			<workingWidth>1.4</workingWidth>
			<combination xmlFilename="Husqvarna_MZ54.xml"/>
			<combination xmlFilename="Husqvarna_bundle.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_forageWagon</function>
        </functions>
        <storePacks>
            <storePack>STARTER_GRASS</storePack>
        </storePacks>
        <image>store_Husqvarna_Recolhedor.dds</image>
        <price>690</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>HUSQVARNA</brand>
        <category>loaderWagons</category>
        <vertexBufferMemoryUsage>254464</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>83712</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_forageWagon</typeDesc>
        <filename>Husqvarna_Recolhedor.i3d</filename>
        <size width="3" length="3" height="0.3"/>
        <speedLimit value="20" />
        <components maxMass="200">
            <component centerOfMass="0 0.06 -0.03" 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" >
			    <objectChange node="0>0|0|1" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|1|0|0" rotationActive="0 0 0" rotationInactive="14 0 106.5"/>
			</inputAttacherJoint>
			<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_capacidadede1500" price="0">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="1500" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_capacidadede3000" price="100">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="3000" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_capacidadede4500" price="200">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="4500" allowAILoading="true">
                        <exactFillRootNode node="0>0|4|1" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_capacidadede6000" price="300">
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="forageWagon" capacity="6000" 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" />
                    <volume node="0>0|4|7" 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="forageWagon01" linkNode="0>0|1|0|0" volumeScale="1"/>
        </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.661" maxX="0.661" minZ="-0.196" maxZ="0.223" yOffset="0" />
    </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="1500" isDefault="true">
            <configuration name="fillUnit"   index="1" />
        </configurationSet>
		<configurationSet name="$l10n_configuration_capacityX" price="100" params="3000">
            <configuration name="fillUnit"   index="2" />
        </configurationSet>
		<configurationSet name="$l10n_configuration_capacityX" price="200" params="4500">
            <configuration name="fillUnit"   index="3" />
        </configurationSet>
		<configurationSet name="$l10n_configuration_capacityX" price="300" params="6000">
            <configuration name="fillUnit"   index="4" />
        </configurationSet>
    </configurationSets>
</vehicle>
