﻿<?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_telehandlerFork</name>
        <specs>
            <combination filterCategory="teleLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <image>$data/vehicles/magsi/telehandlerFork/store_magsiTelehandlerFork.png</image>
        <price>2000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAGSI</brand>
        <category>teleLoaderTools</category>
        <shopTranslationOffset>0 -0.005 0</shopTranslationOffset>
        <shopRotationOffset>0.559 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>29440</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>4864</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_telehandlerTool</typeDesc>
        <filename>$data/vehicles/magsi/telehandlerFork/telehandlerFork.i3d</filename>
        <size width="2.5" length="2"/>
        <supportsPickUp>false</supportsPickUp>
        <components>
            <component centerOfMass="0 0.1 -0.4" solverIterationCount="10" mass="250" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="telehandler" />
        </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.18" transMax="0.150" startTrans="-0.1"/>
            </movingTool>

            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.150" transMax="0.18" startTrans="0.1"/>
            </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.8" height="1.5" length="1.5" lengthOffset="0"/>
    </ai>

    <baseMaterial>
        <material name="telehandlerFork_mat" baseNode="telehandlerFork_vis">
            <shaderParameter name="colorMat0" value="MAGSI_BLACK1"/>
        </material>
    </baseMaterial>

    <foliageBending>
        <bendingNode minX="-0.65" maxX="0.65" minZ="-0.7" maxZ="-0.53" yOffset="0.015" />
        <bendingNode minX="-0.07" maxX="0.07" minZ="0.1" maxZ="1.4" yOffset="-0.67" node="forkLeft" />
        <bendingNode minX="-0.07" maxX="0.07" minZ="0.1" maxZ="1.4" yOffset="-0.67" node="forkRight" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="telehandlerFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="jointNode" node="0>0|1" />
        <i3dMapping id="forkLeft" node="0>0|2|0|0" />
        <i3dMapping id="forkLeftColBack" node="0>0|2|0|0|0" />
        <i3dMapping id="forkLeftColFront" node="0>0|2|0|0|1" />
        <i3dMapping id="forkRight" node="0>0|2|1|0" />
        <i3dMapping id="forkRightColBack" node="0>0|2|1|0|0" />
        <i3dMapping id="forkRightColFront" node="0>0|2|1|0|1" />
    </i3dMappings>
</vehicle>
