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

    <storeData>
        <name>$l10n_shopItem_telehandlerShovel</name>
        <specs>
            <combination filterCategory="teleLoaderVehicles"/>
        </specs>
        <image>data/store/store_BuL_shovel.png</image>
        <price>2800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BRESSELUNDLADE</brand>
        <category>teleLoaderTools</category>
        <shopTranslationOffset>0 -0.02 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>73472</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>17408</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_telehandlerTool</typeDesc>
        <filename>data/vehicles/bresselUndLade/shovel/shovel.i3d</filename>
        <size width="3" length="2"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="300"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
    </base>

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="2640">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="2640" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" allSidePlanes="false" maxAllowedHeapAngle="10" fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="1.3" length="0.2"/>
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="1.3" length="0.2"/>
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="1550">
            <raycast node="dischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="1.3" length="0.3" zOffset="0.5"/>

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

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" loadInfoIndex="1" width="1.32" length="0.2" needsMovement="true" maxPickupAngle="105"/>
        <dischargeInfo node="dischargeNode" minSpeedAngle="105" maxSpeedAngle="180"/>
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="2.8" zOffset="0.9" yOffset="-0.1" minDropWidth="1.5" maxDropWidth="3" minDropDirOffset="1" maxDropDirOffset="1.5" 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>

    <ai>
        <agentAttachment width="2.8" height="1.5" length="1.5" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.80" maxX="0.80" minZ="-0.7" maxZ="0.75" yOffset="-0.02"/>
    </foliageBending>

    <baseMaterial>
        <material name="shovel_mat" baseNode="shovel_vis">
            <shaderParameter name="colorMat0" value="0.0781 0.0859 0.0781 0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="400" useDefaultColors="true">
        <baseMaterialConfiguration name="$l10n_BUL_GREY" price="0" color="BUL_GREY"/>
        <baseMaterialConfiguration name="$l10n_BUL_BLACK" price="0" color="BUL_BLACK"/>
        <baseMaterialConfiguration name="$l10n_BUL_GREEN" price="0" color="BUL_GREEN"/>
        <baseMaterialConfiguration name="$l10n_BUL_ORANGE" price="0" color="BUL_ORANGE"/>
        <material name="shovel_mat" shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>

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

    <i3dMappings>
        <i3dMapping id="BuL_shovel" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0" />
        <i3dMapping id="shovel_vis" node="0>1" />
        <i3dMapping id="fillVolumes" node="0>1|0" />
        <i3dMapping id="fillVolume" node="0>1|0|0" />
        <i3dMapping id="fillVolumeLoadNode" node="0>1|0|1" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>1|0|2" />
        <i3dMapping id="exactFillRootNode" node="0>1|0|3" />
        <i3dMapping id="dischargeNode" node="0>1|1" />
        <i3dMapping id="emitterShape" node="0>1|2" />
        <i3dMapping id="effectNode" node="0>1|3" />
        <i3dMapping id="grainEffect" node="0>1|3|0" />
        <i3dMapping id="smokeEffect" node="0>1|3|1" />
        <i3dMapping id="pickUpNode" node="0>1|4" />
        <i3dMapping id="levelerNode" node="0>1|5" />
        <i3dMapping id="shovelDecals" node="0>1|6" />
        <i3dMapping id="colPart1" node="0>2|0" />
        <i3dMapping id="colPart2" node="0>2|1" />
        <i3dMapping id="colPart3" node="0>2|2" />
        <i3dMapping id="colPart4" node="0>2|3" />
        <i3dMapping id="colPartFront1" node="0>3|0" />
        <i3dMapping id="colPartFront2" node="0>3|1" />
        <i3dMapping id="colPartFront3" node="0>3|2" />
    </i3dMappings>
</vehicle>
