<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="implement">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>
            <en>380 Rototilt</en>
			<de>380 Rototilt</de>
			</name>
        <specs>
            <combination xmlFilename="R1055F.xml"/>
			<combination xmlFilename="bucket1.xml"/>
			<weight ignore="true" />
        </specs>
        <image>store_rotortilt.dds</image>
        <functions>
            <function>$l10n_function_rototilt</function>
        </functions>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>wood</category>
    </storeData>
   
    <base>
        <typeDesc>$l10n_typeDesc_EuromachTool</typeDesc>
        <filename>rototilt.i3d</filename>
        <size width="1.2" length="1"/>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="400"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TOOL"/>
    </base>
    
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="backhoeAttacherJoint" jointType="mecalacfront" hardAttach="false" isControllable="true" rotLimitSpring="9999 9999 9999" rotLimitDamping="2 2 2" transLimitSpring="9999 9999 9999" transLimitDamping="2 2 2">
                <subType name="excavatorFastCoupler"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>
   
   <attacherJoints>
        <attacherJoint node="backhoeRotorTiltDummyAttacherJoint" jointType="mecalacfront" hardAttach="false" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="9999 9999 9999" rotLimitDamping="2 2 2" transLimitSpring="9999 9999 9999" transLimitDamping="2 2 2">
            <schema position="1 0.4" rotation="0" invertX="false"/>
            <subType name="excavatorFastCoupler"/>
        </attacherJoint>
		
		<attacherJoint node="backhoeRotorTiltDummyAttacherJoint" jointType="wheelLoader" hardAttach="false" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="9999 9999 9999" rotLimitDamping="2 2 2" transLimitSpring="9999 9999 9999" transLimitDamping="2 2 2">
            <schema position="1 0.4" rotation="0" invertX="false"/>
            <subType name="excavatorFastCoupler"/>
        </attacherJoint>
		
        <sounds>
            <attach template="ATTACH_01" linkNode="rotorTilt_main_component1"/>
        </sounds>
    </attacherJoints>
    
   <cylindered>
   
        <movingTools>
		    <controlGroups>
                <controlGroup name="$l10n_controlGroup_rototilt" />
            </controlGroups>
            <movingTool node="tiltDummy" delayedNode="tilt" playSound="true">
                <controls axis="AXIS_CRANE_ARM" invertAxis="false" mouseSpeedFactor="0.5" iconName="CRANE_ARM1_ROTATE_X"/>
                <rotation rotSpeed="25" rotAcceleration="200" rotMax="30" rotMin="-30" rotationAxis="3"/>
                <attacherJoint jointIndices="1"/>
                <dependentPart node="hydraulicTiltLeft"/>
                <dependentPart node="hydraulicTiltRight"/>
            </movingTool>
            <movingTool node="rotDummy" delayedNode="rotor" playSound="true">
                <controls axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="0.5" iconName="CRANE_ARM1_ROTATE_X"/>
                <rotation rotSpeed="50" rotAcceleration="200" rotationAxis="2"/>
                <attacherJoint jointIndices="1"/>
            </movingTool>
            <movingTool node="clawLeftDummy" delayedNode="clawLeft" playSound="true">
                <controls axis="AXIS_CRANE_ARM3" invertAxis="true" mouseSpeedFactor="0.5" iconName="GRABBER_ROTATE_Y"/>
                <rotation rotSpeed="130" rotAcceleration="250" rotMax="0" rotMin="-110" startRot="0" rotationAxis="2"/>
                <dependentMovingTool node="clawRightDummy" speedScale="1"/>
                <dependentPart node="clawHydLeft"/>
            </movingTool>
            <movingTool node="clawRightDummy" delayedNode="clawRight" playSound="true">
                <rotation rotSpeed="-130" rotAcceleration="250" rotMax="110" rotMin="0" startRot="0" rotationAxis="2"/>
                <dependentPart node="clawHydRight"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="hydraulicTiltLeft" referencePoint="hydraulicTiltLeftRef" referenceFrame="hydraulicTiltLeftRef">
                <translatingPart node="hydraulicTiltLeftPunch"/>
            </movingPart>
            <movingPart node="hydraulicTiltRight" referencePoint="hydraulicTiltRightRef" referenceFrame="hydraulicTiltRightRef">
                <translatingPart node="hydraulicTiltRightPunch"/>
            </movingPart>
            <movingPart node="clawHydLeft" referencePoint="clawHydLeftRef" referenceFrame="clawHydLeftRef">
                <translatingPart node="clawHydLeftPunch"/>
            </movingPart>
            <movingPart node="clawHydRight" referencePoint="clawHydRightRef" referenceFrame="clawHydRightRef">
                <translatingPart node="clawHydRightPunch"/>
            </movingPart>
        </movingParts>
    </cylindered>
   
   <foliageBending>
        <bendingNode minX="-0.237" maxX="0.237" minZ="-0.3" maxZ="0.3" yOffset="0.271" node="rotorTilt_main_component1"/>
        <bendingNode minX="-0.339" maxX="0.339" minZ="-0.412" maxZ="0.35" yOffset="-0.33" node="tilt"/>
    </foliageBending>
    
	<ai>
        <agentAttachment width="1" height="1.0" length="0.7" lengthOffset="-0.05"/>
    </ai>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>
	
    <i3dMappings>
        <i3dMapping id="rotorTilt_main_component1" node="0>"/>
        <i3dMapping id="backhoeAttacherJoint" node="0>0"/>
        <i3dMapping id="rototilt" node="0>1"/>
        <i3dMapping id="tilt" node="0>1|0"/>
        <i3dMapping id="rotor" node="0>1|0|0"/>
        <i3dMapping id="backhoeRotorTiltAttacherJoint" node="0>1|0|0|0"/>
        <i3dMapping id="clawLeft" node="0>1|0|0|1"/>
        <i3dMapping id="clawHydLeftRef" node="0>1|0|0|1|0"/>
        <i3dMapping id="clawRight" node="0>1|0|0|2"/>
        <i3dMapping id="clawHydRightRef" node="0>1|0|0|2|0"/>
        <i3dMapping id="clawHydLeft" node="0>1|0|0|3"/>
        <i3dMapping id="clawHydLeftPunch" node="0>1|0|0|3|0"/>
        <i3dMapping id="clawHydRight" node="0>1|0|0|4"/>
        <i3dMapping id="clawHydRightPunch" node="0>1|0|0|4|0"/>
        <i3dMapping id="hydraulicTiltLeftRef" node="0>1|0|1"/>
        <i3dMapping id="hydraulicTiltRightRef" node="0>1|0|2"/>
        <i3dMapping id="tiltDummy" node="0>1|1"/>
        <i3dMapping id="rotDummy" node="0>1|1|0"/>
        <i3dMapping id="backhoeRotorTiltDummyAttacherJoint" node="0>1|1|0|0"/>
        <i3dMapping id="clawLeftDummy" node="0>1|1|0|1"/>
        <i3dMapping id="clawRightDummy" node="0>1|1|0|2"/>
        <i3dMapping id="hydraulicTiltLeft" node="0>1|2"/>
        <i3dMapping id="hydraulicTiltLeftPunch" node="0>1|2|0"/>
        <i3dMapping id="hydraulicTiltRight" node="0>1|3"/>
        <i3dMapping id="hydraulicTiltRightPunch" node="0>1|3|0"/>
    </i3dMappings>
</vehicle>
