﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="implementDynamicMountAttacher" 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_frontloaderPalletFork</name>
        <specs>
            <combination filterCategory="frontLoaders" />
            <combination filterCategory="frontLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <storePacks>
            <storePack>STARTER_TRANSPORT</storePack>
        </storePacks>
        <image>$data/vehicles/albutt/frontloaderPalletFork/store_frontloaderPalletFork.png</image>
        <price>1700</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ALBUTT</brand>
        <category>frontLoaderTools</category>
        <shopTranslationOffset>0 -0.002 0</shopTranslationOffset>
        <shopRotationOffset>0.001 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>43776</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>7424</indexBufferMemoryUsage>
        <textureMemoryUsage>589824</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>$data/vehicles/albutt/frontloaderPalletFork/frontloaderPalletFork.i3d</filename>
        <size width="2.5" length="2"/>
        <supportsPickUp>false</supportsPickUp>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="20" mass="250" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="frontloader" />
        </inputAttacherJoints>
    </attachable>

    <cylindered>
        <movingTools>
            <movingTool node="forkLeft">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.2" iconName="WORKING_WIDTH_TRANSLATE_X" />
                <dependentMovingTool node="forkRight" speedScale="-1"/>
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="0.19" transMax="0.570"/>
            </movingTool>

            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.570" transMax="-0.19"/>
            </movingTool>
        </movingTools>

        <sounds>
            <actionSound template="hingeMedium" pitchScale="0.6" volumeScale="2" linkNode="forkLeft" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG " nodes="forkLeft"/>
            <actionSound template="clackVar6"   pitchScale="1"   volumeScale="1" linkNode="forkLeft" actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="forkLeft"/>
            <actionSound template="clackVar6"   pitchScale="0.8" volumeScale="1" linkNode="forkLeft" actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="forkLeft"/>
        </sounds>
    </cylindered>

    <dynamicMountAttacher node="jointNode">
        <mountCollisionMask node="forkLeftColBack" collisionMask="134225920" />
        <mountCollisionMask node="forkRightColBack" collisionMask="134225920" />
    </dynamicMountAttacher>

    <ai>
        <agentAttachment width="1.3" height="0.9" length="1.3" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.65" maxX="0.65" minZ="-0.7" maxZ="-0.53" yOffset="0.15" />
        <bendingNode minX="-0.07" maxX="0.07" minZ="0" maxZ="1.25" yOffset="-0.34" node="forkLeft" />
        <bendingNode minX="-0.07" maxX="0.07" minZ="0" maxZ="1.25" yOffset="-0.34" node="forkRight" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="forkLeft" node="0>0|1|0" />
        <i3dMapping id="forkLeftColBack" node="0>0|1|0|0" />
        <i3dMapping id="forkLeftColFront" node="0>0|1|0|1" />
        <i3dMapping id="forkRight" node="0>0|1|1" />
        <i3dMapping id="forkRightColBack" node="0>0|1|1|0" />
        <i3dMapping id="forkRightColFront" node="0>0|1|1|1" />
        <i3dMapping id="jointNode" node="0>0|2" />
    </i3dMappings>
</vehicle>
