﻿<?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_frontloaderLogFork</name>
        <specs>
            <combination filterCategory="frontLoaders" />
            <combination filterCategory="frontLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderLogFork</function>
        </functions>
        <image>$data/vehicles/albutt/frontloaderLogFork/store_albuttFrontloaderLogFork.png</image>
        <price>3000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ALBUTT</brand>
        <category>frontLoaderTools</category>
        <shopTranslationOffset>0 -0.002 0</shopTranslationOffset>
        <shopRotationOffset>1.004 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>279808</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>49920</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>$data/vehicles/albutt/frontloaderLogFork/frontloaderLogFork.i3d</filename>
        <size width="2.5" length="2"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="30" mass="225" />
            <component solverIterationCount="25" mass="225" />
            <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="frontloader" />
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01" adapterNode="hydraulicIn01_detached"  length="0.5" diameter="0.015" straighteningFactor="1.5">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" adapterNode="hydraulicOut01_detached"  length="0.5" diameter="0.015" 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.2" iconName="TOOL_OPEN_CLOSE" />
                <rotation rotationAxis="1" rotSpeed="50" rotAcceleration="250" rotMax="3" rotMin="-108" />
                <componentJoint index="1" anchorActor="0" />
                <dependentPart node="grab" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="grab" referencePoint="grabRef" referenceFrame="grabJoint" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="100">
                <dependentPart node="grabHydraulic" />
            </movingPart>
            <movingPart node="grabHydraulic" referencePoint="grabHydraulicRef" referenceFrame="grabHydraulicRefFrame" >
                <translatingPart node="grabHydraulicPunch" />
            </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>

    <ai>
        <agentAttachment width="1.4" height="0.9" length="1.0" lengthOffset="0.05"/>
    </ai>

    <baseMaterial>
        <material name="frontloaderLogFork_mat" baseNode="frontloaderLogFork_vis">
            <shaderParameter name="colorMat0" value="ALBUTT_RED1"/>
        </material>
    </baseMaterial>

    <foliageBending>
        <bendingNode minX="-0.7" maxX="0.7" minZ="-0.45" maxZ="-0.2" yOffset="0.02" />
        <bendingNode minX="0.7" maxX="0.5" minZ="-0.2" maxZ="0.57" yOffset="0.02" />
        <bendingNode minX="-0.7" maxX="-0.5" minZ="-0.2" maxZ="0.57" yOffset="0.02" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="frontloaderLogFork_main_component1" node="0>" />
        <i3dMapping id="frontloaderLogFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|1|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|1|1" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|1|2" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|1|3" />
        <i3dMapping id="grabJoint" node="0>0|1" />
        <i3dMapping id="grab" node="0>0|2" />
        <i3dMapping id="grabHydraulicRef" node="0>0|2|0" />
        <i3dMapping id="grabHydraulicRefFrame" node="0>0|3" />
        <i3dMapping id="grabHydraulic" node="0>0|3|0" />
        <i3dMapping id="grabHydraulicPunch" node="0>0|3|0|0" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|4" />
        <i3dMapping id="frontloaderLogFork_grab_component2" node="1>" />
        <i3dMapping id="grabRef" node="1>0" />
    </i3dMappings>
</vehicle>
