<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="shovelLeveler" 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_frontloaderShovel</name>
        <specs>
			<combination xmlFilename="frontLoader/obciagnik.xml"/>
			<combination xmlFilename="frontLoader/tur.xml"/>
			<combination xmlFilename="frontLoader/widly1.xml"/>
			<combination xmlFilename="frontLoader/widly2.xml"/>
			<combination xmlFilename="frontLoader/widly3.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>store/store_lycha.png</image>
        <price>1000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARDFRONTLOADER</brand>
        <category>frontLoaderTools</category>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>frontLoader/lycha.i3d</filename>
        <size width="2" length="1"/>
        <components>
            <component centerOfMass="0 0 0.26" solverIterationCount="10" mass="60"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TOOL"/>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|0" jointType="frontloaderT25"/>
        </inputAttacherJoints>
    </attachable>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="700" >
                        <exactFillRootNode node="0>0|1|1"/>
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="7000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|1|0" maxDelta="0.5" maxAllowedHeapAngle="30" fillUnitIndex="1" maxSubDivEdgeLength="0.6"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <loadInfos>
            <loadInfo>
                <node node="0>0|1|2" width="2.0" length="0.1"/>
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="0>0|1|3" width="2.0" length="0.1"/>
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="0>0|1|4" fillUnitIndex="1" emptySpeed="1000" >
            <raycast node="0>0|1|4" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="2.0" length="1" zOffset="0.5"/>

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|2|2" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="0>0|2|0" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" extraDistance="0.15"/>
                </effectNode>
                <effectNode effectNode="0>0|2|1" materialType="unloadingSmoke" fadeTime="0.5"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="0>0|1|5" fillUnitIndex="1" loadInfoIndex="1" width="1.2" length="0.5" needsMovement="true" maxPickupAngle="105"/>
        <dischargeInfo node="0>0|1|4" minSpeedAngle="105" maxSpeedAngle="130"/>
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="0>0|1|6" width="1.6" zOffset="0.2" minDropWidth="1" maxDropWidth="2.5" minDropDirOffset="1" maxDropDirOffset="1.5" minFillLevel="0.85">
            <smoothing allowed="true" radius="0.5" overlap="1.7" direction="0"/>
        </levelerNode>

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

    <ai>
        <agentAttachment width="1.2" height="0.8" length="1" lengthOffset="0.05"/>
    </ai>

    <baseMaterial>
        <material name="lycha_mat" baseNode="0>0">
            <shaderParameter name="colorMat0" value="0.04 0.04 0.04"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="100" useDefaultColors="false">
        <baseMaterialConfiguration name="$l10n_black1" color="0.04 0.04 0.04" material="0"/>
        <baseMaterialConfiguration name="$l10n_black2" color="0.02 0.02 0.02" material="0"/>
        <baseMaterialConfiguration name="$l10n_blue1"  color="0.09 0.18 0.25" material="0"/>
        <material name="lycha_mat" shaderParameter="colorMat0"/>
    </baseMaterialConfigurations>

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

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

</vehicle>
