﻿<?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_wheelLoaderFork</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <image>$data/vehicles/magsi/wheelLoaderFork/store_magsiWheelLoaderFork.png</image>
        <price>2500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MAGSI</brand>
        <category>wheelLoaderTools</category>
        <shopTranslationOffset>0 -0.01 0</shopTranslationOffset>
        <shopRotationOffset>1.041 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>57856</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>10752</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_wheelLoaderTool</typeDesc>
        <filename>$data/vehicles/magsi/wheelLoaderFork/wheelLoaderFork.i3d</filename>
        <size width="3" length="2"/>
        <components>
            <component centerOfMass="0 0.2 -0.4" solverIterationCount="10" mass="300" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="wheelLoader" />
        </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.22" transMax="0.338" startTrans="-0.14"/>
            </movingTool>

            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.338" transMax="0.22" startTrans="0.14"/>
            </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="wheelLoaderFork_mat" baseNode="wheelLoaderFork_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.1" />
        <bendingNode minX="-0.09" maxX="0.09" minZ="0" maxZ="1.28" yOffset="-0.7" node="forkLeft" />
        <bendingNode minX="-0.09" maxX="0.09" minZ="0" maxZ="1.28" yOffset="-0.7" node="forkRight" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="wheelLoaderFork_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>
