<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="dynamicMountAttacherShovelLeveler" 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_shopItem_wheelLoaderSilageFork</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
            <function>$l10n_function_leveler</function>
        </functions>
        <image>$data/vehicles/albutt/wheelLoaderSilageFork/store_wheelLoaderSilageFork.png</image>
        <price>10500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ALBUTT</brand>
        <category>wheelLoaderTools</category>
        <shopHeight>2.8</shopHeight>
        <shopTranslationOffset>0 0.011 0</shopTranslationOffset>
        <shopRotationOffset>-0.337 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>544256</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>105728</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_shopItem_wheelLoaderSilageFork</typeDesc>
        <filename>$data/vehicles/albutt/wheelLoaderSilageFork/wheelLoaderSilageFork.i3d</filename>
        <size width="5" length="3" lengthOffset="0.75"/>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="1335" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="wheelLoader" />
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.3" diameter="0.02" straighteningFactor="0.5" isTwoPointHose="true"/>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.3" diameter="0.02" straighteningFactor="0.5" isTwoPointHose="true"/>
    </connectionHoses>

    <dynamicMountAttacher node="0>">
        <mountCollisionMask node="colPartBack1" collisionMask="134225920" />
        <mountCollisionMask node="colPartBack2" collisionMask="134225920" />
        <mountCollisionMask node="colPartBack3" collisionMask="134225920" />
        <mountCollisionMask node="colPartBack4" collisionMask="134225920" />
        <mountCollisionMask node="colPartBack5" collisionMask="134225920" />
        <mountCollisionMask node="colPartBack6" collisionMask="134225920" />
    </dynamicMountAttacher>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" turnOnFoldDirection="1">
                    <foldingPart animationName="folding" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="leftArm" startTime="0.0" endTime="2.0" startRot="0 0 90" endRot="0 0 0"/>
            <part node="rightArm" startTime="0.0" endTime="2.0" startRot="0 0 -90" endRot="0 0 0"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="leftArm">
                <dependentPart node="leftArmHydraulic"/>
            </movingTool>
            <movingTool node="rightArm">
                <dependentPart node="rightArmHydraulic"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="leftArmHydraulic" referencePoint="leftArmHydraulicRef" referenceFrame="leftArmHydraulicRef" playSound="true">
                <translatingPart node="leftArmHydraulicPunch"/>
            </movingPart>
            <movingPart node="rightArmHydraulic" referencePoint="rightArmHydraulicRef" referenceFrame="rightArmHydraulicRef" playSound="true">
                <translatingPart node="rightArmHydraulicPunch"/>
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="wheelLoaderSilageFork_main_component1"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits allowFoldingWhileFilled="false">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="FORK" capacity="15000">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="FORK" capacity="15000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxAllowedHeapAngle="30" fillUnitIndex="1" maxDelta="1.5"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="3.5" length="2.2"/>
            </unloadInfo>
        </unloadInfos>

        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="3.5" length="1.0"/>
            </loadInfo>
        </loadInfos>
    </fillVolume>

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" loadInfoIndex="1" width="4.1" length="0.4" needsMovement="true" maxPickupAngle="105" foldMinLimit="1"/>
        <dischargeInfo node="fillVolumeDischargeNode" minSpeedAngle="105" maxSpeedAngle="130" />
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="4.1" zOffset="0.9" minDropWidth="2.0" maxDropWidth="4.1" minDropDirOffset="1" maxDropDirOffset="1.5" foldMinLimit="0.99" foldMaxLimit="1" minFillLevel="0.85">
            <smoothing allowed="true" radius="0.5" overlap="1.7" direction="0"/>
        </levelerNode>

        <pickUpDirection>1</pickUpDirection>
    </leveler>

    <suspensions>
        <suspension node="levelerNode" weight="150" minTranslation="0 -0.5 0.0" maxTranslation="0.0 0.5 0.0" suspensionParametersX="20 4" suspensionParametersY="1 1" suspensionParametersZ="20 4" serverOnly="true"/>
    </suspensions>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="fillVolumeDischargeNode" fillUnitIndex="1" unloadInfoIndex="1" emptySpeed="8000">
            <raycast node="fillVolumeDischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="2.5" length="1" zOffset="0.5"/>

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emiterShape" materialType="unloadingParticle" effectClass="ParticleEffect" lifespan="0.2"/>
                    <effectNode effectNode="grainEffect" materialType="unloading"  fadeTime="0.5" alignXAxisToWorldY="true" />
                </effectNode>
                <effectNode effectNode="smokeEffect" materialType="unloadingSmoke"  fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <ai>
        <agentAttachment width="4.2" height="1.5" length="2" lengthOffset="0.6"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.4" maxX="1.4" minZ="-0.25" maxZ="1.5" yOffset="0.02" />
        <bendingNode minX="0.12" maxX="0.87" minZ="-0.07" maxZ="1.68" yOffset="-0.18" node="leftArm" />
        <bendingNode minX="-0.87" maxX="-0.12" minZ="-0.07" maxZ="1.68" yOffset="-0.18" node="rightArm" />
    </foliageBending>

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

    <i3dMappings>
        <i3dMapping id="wheelLoaderSilageFork_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|1|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|1|1" />
        <i3dMapping id="leftArm" node="0>0|2|0" />
        <i3dMapping id="leftArmHydraulicRef" node="0>0|2|0|1" />
        <i3dMapping id="colPartBack5" node="0>0|2|0|2" />
        <i3dMapping id="colPartFront5" node="0>0|2|0|3" />
        <i3dMapping id="rightArm" node="0>0|2|1" />
        <i3dMapping id="rightArmHydraulicRef" node="0>0|2|1|1" />
        <i3dMapping id="colPartBack6" node="0>0|2|1|2" />
        <i3dMapping id="colPartFront6" node="0>0|2|1|3" />
        <i3dMapping id="leftArmHydraulic" node="0>0|2|2" />
        <i3dMapping id="leftArmHydraulicPunch" node="0>0|2|2|0" />
        <i3dMapping id="rightArmHydraulic" node="0>0|2|3" />
        <i3dMapping id="rightArmHydraulicPunch" node="0>0|2|3|0" />
        <i3dMapping id="fillVolume" node="0>0|3|0" />
        <i3dMapping id="fillVolumeDischargeNode" node="0>0|3|1" />
        <i3dMapping id="fillVolumeLoadNode" node="0>0|3|2" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>0|3|3" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|4" />
        <i3dMapping id="pickUpNode" node="0>0|4|0" />
        <i3dMapping id="levelerNode" node="0>0|4|1" />
        <i3dMapping id="tipReferenceNode" node="0>0|4|2" />
        <i3dMapping id="emiterShape" node="0>0|5|0" />
        <i3dMapping id="grainEffect" node="0>0|5|1|0" />
        <i3dMapping id="smokeEffect" node="0>0|5|1|1" />
        <i3dMapping id="colPartBack1" node="0>2|0" />
        <i3dMapping id="colPartBack2" node="0>2|1" />
        <i3dMapping id="colPartFront1" node="0>2|2" />
        <i3dMapping id="colPartFront2" node="0>2|3" />
        <i3dMapping id="colPartBack3" node="0>2|4" />
        <i3dMapping id="colPartFront3" node="0>2|5" />
        <i3dMapping id="colPartBack4" node="0>2|6" />
        <i3dMapping id="colPartFront4" node="0>2|7" />
    </i3dMappings>
</vehicle>
