﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="logGrab" 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_telehandlerLogFork</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderLogFork</function>
        </functions>
        <image>$data/vehicles/albutt/wheelLoaderLogFork/store_wheelLoaderLogFork.png</image>
        <price>6500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ALBUTT</brand>
        <category>wheelLoaderTools</category>
        <shopHeight>1.6</shopHeight>
        <shopTranslationOffset>0 -0.034 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>313600</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>57600</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_telehandlerTool</typeDesc>
        <filename>$data/vehicles/albutt/wheelLoaderLogFork/wheelLoaderLogFork.i3d</filename>
        <size width="3.5" length="2"/>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="600" />
            <component solverIterationCount="10" mass="420" />
            <joint component1="1" component2="2" node="grabJoint" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="300 0 0" rotLimitDamping="30 0 0" rotLimitForceLimit="30 -1 -1" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="wheelLoader" />
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.5" diameter="0.02" straighteningFactor="1.5">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.5" diameter="0.02" straighteningFactor="1.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <logGrab jointNode="0>" jointRoot="0>">
        <trigger node="dynamicMountTrigger" />
        <grab componentJoint="1" axis="3" rotationOffsetThreshold="10" rotationOffsetTime="1000"/>
    </logGrab>

    <cylindered>
        <movingTools>
            <movingTool node="grabJoint" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.25" iconName="TOOL_OPEN_CLOSE" />
                <rotation rotationAxis="1" rotSpeed="45" rotAcceleration="250" rotMax="15" rotMin="-70" />
                <componentJoint index="1" anchorActor="0" />
                <dependentPart node="grab" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="grab" referencePoint="grabRef" referenceFrame="grabJoint" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="250">
                <dependentPart node="hydraulic" />
            </movingPart>
            <movingPart node="hydraulic" referencePoint="hydraulicRef" referenceFrame="hydraulicRef" >
                <translatingPart node="hydraulicPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.6" volumeScale="2"   linkNode="grabJoint" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"  nodes="grabJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.9" volumeScale="1.4" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="grabJoint"/>
            <actionSound template="cylinderPunch"         pitchScale="2"   volumeScale="0.5" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="grabJoint"/>
            <actionSound template="clackVar6"             pitchScale="0.6" volumeScale="1.7" linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="grabJoint"/>
            <actionSound template="sheetImp02"            pitchScale="0.8" volumeScale="2"   linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="grabJoint"/>
        </sounds>
    </cylindered>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <ai>
        <agentAttachment width="2.6" height="1.3" length="1" lengthOffset="-0.2"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-0.5" maxZ="0.15" yOffset="0.02" />
    </foliageBending>

    <baseMaterial>
        <material name="wheelLoaderLogFork_mat" baseNode="wheelLoaderLogFork_vis">
            <shaderParameter name="colorMat0" value="ALBUTT_RED1"/>
            <shaderParameter name="colorMat1" value="SHARED_BLACK1"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="0" useDefaultColors="false">
        <baseMaterialConfiguration name="$l10n_ui_colorBlack" color="SHARED_BLACK1"/>
        <baseMaterialConfiguration name="$l10n_ui_colorGreen" color="ALBUTT_GREEN1"/>
        <material name="wheelLoaderLogFork_mat" shaderParameter="colorMat1" />
    </baseMaterialConfigurations>

    <i3dMappings>
        <i3dMapping id="wheelLoaderLogFork_main_component1" node="0>" />
        <i3dMapping id="wheelLoaderLogFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="grabJoint" node="0>0|1" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|2|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|2|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|2|2" />
        <i3dMapping id="hydraulicOut01" node="0>0|2|3" />
        <i3dMapping id="hydraulic" node="0>0|3|0" />
        <i3dMapping id="hydraulicPunch" node="0>0|3|0|0" />
        <i3dMapping id="grab" node="0>0|3|1" />
        <i3dMapping id="hydraulicRef" node="0>0|3|1|0" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|4" />
        <i3dMapping id="grabRef" node="1>0" />
    </i3dMappings>
</vehicle>
