<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="craneTrailer" 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>            <en>Unimog Claw</en> <de>Unimog Zange</de>
        </name>
        <specs>
            <combination xmlFilename="xml/KranUnimog.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_forestryTransport</function>
        </functions>
        <image>store/store_Zange.dds</image>
        <price>2100</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PALFINGER</brand>
        <category>forestryMisc</category>
        <shopTranslationOffset>0 1 0</shopTranslationOffset>
        <shopRotationOffset>0.84 0 0</shopRotationOffset>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_timberTrailer</typeDesc>
        <filename>i3d/Zange.i3d</filename>
        <sounds filename="$data/vehicles/riedler/timberFrameFH16/sounds/timberFrameFH16.xml" volumeFactor="0.8"/>
        <size width="2.8" length="0.7" height="4.1" lengthOffset="-0.35"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="20" mass="100"/>
            <component centerOfMass="0 -0.5 0" solverIterationCount="20" mass="80" inertiaScale="6 6 6"/>
            <component centerOfMass="0 -0.5 0" solverIterationCount="20" mass="80" inertiaScale="6 6 6"/>
            <joint component1="1" component2="2" node="componentJointClawLeft" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="0 0 3000" rotLimitDamping="0 0 100" rotLimitForceLimit="-1 -1 100"/>
            <joint component1="1" component2="3" node="componentJointClawRight" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="0 0 3000" rotLimitDamping="0 0 100" rotLimitForceLimit="-1 -1 100"/>
            <collisionPair component1="2" component2="3" enabled="false"/> -->
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="IMPLEMENT"/>
    </base>
    
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="conveyor"/>
        </inputAttacherJoints>
    </attachable>
    
    <logGrab>
        <grab jointNode="grapple_component2" jointRoot="grapple_component2" lockAllAxis="true">
            <claw componentJointIndex="1" axis="3" rotationOffsetThreshold="10" rotationOffsetInverted="false" rotationOffsetTime="500">
                <movingTool node="componentJointClawLeft" direction="1" closeDirection="-1"/>
            </claw>
            <claw componentJointIndex="2" axis="3" rotationOffsetThreshold="10" rotationOffsetInverted="true" rotationOffsetTime="500">
                <movingTool node="componentJointClawRight" direction="-1" closeDirection="1"/>
            </claw>
            <trigger node="logGrabTrigger"/>
            <treeDetection node="treeDetectionNode" sizeY="2.4" sizeZ="1.5"/>
        </grab>
    </logGrab> 
    
    <cylindered >
        <movingTools>
           <movingTool node="componentJointClawLeft" playSound="true"  isConsumingPower="true">
                <controls axis="AXIS_CRANE_TOOL" invertAxis="true" mouseSpeedFactor="0.5" iconName="GRABBER_OPEN_CLOSE"/>
                <rotation rotSpeed="-70" rotAcceleration="300" rotMin="-135.5" rotMax="20" rotationAxis="3" startRot="-130"/>
                <componentJoint index="1"/><dependentPart node="clawLeft"/>
                <dependentMovingTool node="componentJointClawRight" speedScale="-1"/>
            </movingTool>
            <movingTool node="componentJointClawRight" playSound="true">
                <rotation rotSpeed="-70" rotAcceleration="300" rotMin="-20" rotMax="135.5" rotationAxis="3" startRot="130"/>
                <componentJoint index="2"/><dependentPart node="clawRight"/>
            </movingTool> 
        </movingTools>
        <movingParts>
       
           <movingPart node="clawLeft" referencePoint="clawLeftRef" referenceFrame="clawLeftRefFrame" limitedAxis="1">
                <dependentPart node="clawHydraulic"/>
            </movingPart>
            <movingPart node="clawHydraulic" referencePoint="clawHydraulicRef" referenceFrame="clawHydraulicRefFrame">
                <translatingPart node="clawHydraulicPunch"/>
            </movingPart>
            <movingPart node="clawRight" referencePoint="clawRightRef" referenceFrame="clawRightRefFrame" limitedAxis="1"/>
        </movingParts>
       
        <sounds>
            <actionSound template="hydraulicClose03" volumeScale="2.0" pitchScale="2.5" linkNode="componentJointClawRight" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="componentJointClawRight" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="clackVar6" volumeScale="1.1" pitchScale="1.2" linkNode="componentJointClawRight" actionNames="TOOL_MOVE_END_POS_LIMIT TOOL_MOVE_END_NEG_LIMIT" nodes="componentJointClawRight"/>
            <actionSound template="vibratingImp" volumeScale="1.1" pitchScale="1.9" linkNode="componentJointClawRight" actionNames="TOOL_MOVE_END_POS_LIMIT TOOL_MOVE_END_NEG_LIMIT" nodes="componentJointClawRight"/>
        </sounds>
    </cylindered>
    
     <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-2.3" maxZ="2.8" yOffset="0.6" />
    </foliageBending>
    
    <ai>
        <agentAttachment jointNode="attacherJoint" width="2.5" height="3.5" length="0.7" lengthOffset="0.1"/>
    </ai>
   
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    <i3dMappings>
        <i3dMapping id="main_component1" node="0>"/>
        
        <i3dMapping id="attacherJoint" node="0>8|6"/>
        <i3dMapping id="grappleRotZ" node="0>8"/> 
        <i3dMapping id="clawLeftRefFrame" node="0>8|0"/>
        <i3dMapping id="clawLeft" node="0>8|0|0"/>
        <i3dMapping id="clawHydraulicRefFrame" node="0>8|0|0|0"/>
        <i3dMapping id="clawHydraulic" node="0>8|0|0|0|0"/>
        <i3dMapping id="clawHydraulicPunch" node="0>8|0|0|0|0|0"/>
        <i3dMapping id="clawRightRefFrame" node="0>8|1"/>
        <i3dMapping id="clawRight" node="0>8|1|0"/>
        <i3dMapping id="clawHydraulicRef" node="0>8|1|0|0"/> 
        <i3dMapping id="componentJointGrappleActor1" node="0>0|0"/>
        <i3dMapping id="componentJointClawLeft" node="0>1"/>
        <i3dMapping id="componentJointClawRight" node="0>2"/>
        <i3dMapping id="grapple_component2" node="0>"/>
        <i3dMapping id="clawRight_component4" node="2>"/>
        <i3dMapping id="clawLeft_component3" node="1>"/>
        <i3dMapping id="clawLeftRef" node="1>0"/>
        <i3dMapping id="clawRightRef" node="2>0"/> 
        <i3dMapping id="logGrabTrigger" node="0>6"/>
        <i3dMapping id="treeDetectionNode" node="0>7"/>
       
    </i3dMappings>
</vehicle>
