<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="attachableFrontloader" 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>Johndeere 37</name>
        <specs>
            <combination filterCategory="frontLoaderTools" />
            <combination xmlFilename="series710.xml" />
        </specs>
        <functions>
            <function>$l10n_function_frontloader</function>
        </functions>
        <image>store_37.dds</image>
        <price>900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>frontLoaders</category>
        <shopHeight>2.5</shopHeight>
        <shopTranslationOffset>0 0.034 0</shopTranslationOffset>
        <shopRotationOffset>3.948 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>581376</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>106752</indexBufferMemoryUsage>
        <textureMemoryUsage>1048576</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloader</typeDesc>
        <filename>37.i3d</filename>
        <size width="2.5" length="3.2" />
        <components>
            <component centerOfMass="0 0.1 0.1" solverIterationCount="10" mass="400" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="FRONTLOADER" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|1|0" hardAttach="true" jointType="attachableFrontloader" />
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <attacherJoints>
        <attacherJoint jointType="frontloader" node="0>0|2|4|5|2|0" nodeVisual="0>0|2|4|5|2|0" allowsJointLimitMovement="false" allowsLowering="false" rotLimitSpring="7500 7500 7500" rotLimitDamping="5 5 5" transLimitSpring="7500 7500 7500" transLimitDamping="5 5 5" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <cylindered>
        <movingTools>
            <movingTool node="0>0|2">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseSpeedFactor="0.8" iconName="FRONTLOADER_ARM_ROTATE" />
                <attacherJoint jointIndices="1" />
                <rotation rotSpeed="20" rotAcceleration="150" rotMax="10" rotMin="-80" startRot="-4" detachingRotMinLimit="-10" />
                <dependentPart node="0>0|2|4|5" />
            </movingTool>
            <movingTool node="0>0|2|4|5" >
                <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.6" iconName="FRONTLOADER_ARM_ROTATE_TOOL" />
                <attacherJoint jointIndices="1" />
                <rotation rotSpeed="50" rotAcceleration="300" rotMax="90" rotMin="-40" startRot="-38" syncMaxRotLimits="true" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="0>0|2|4|1" referencePoint="0>0|4" referenceFrame="0>0|4" playSound="true" scaleZ="false" isActiveDirty="true" maxUpdateDistance="50"/>
            <movingPart node="0>0|3" referencePoint="0>0|2|4|0" referenceFrame="0>0|2|4|0" playSound="false" scaleZ="false" isActiveDirty="true" maxUpdateDistance="50"/>
            <movingPart node="0>0|2|4|3" referencePoint="0>0|2|4|5|0" referenceFrame="0>0|2|4|5|0" playSound="true" scaleZ="false" isActiveDirty="true" maxUpdateDistance="50"/>
            <movingPart node="0>0|2|4|5|1" referencePoint="0>0|2|4|4" referenceFrame="0>0|2|4|4" playSound="false" scaleZ="false" isActiveDirty="true" maxUpdateDistance="50"/>
            
            <movingPart node="0>0|2|4|5|2" referenceFrame="0>0|2|4|5">
                <attacherJoint jointIndices="1" />
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="hydraulicLayerTone2"   pitchScale="1.5" volumeScale="1.2" linkNode="0>0|2|4|1"   actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>0|2|4|1" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone"    pitchScale="0.7" volumeScale="1.2" linkNode="0>0|2|4|1"   actionNames="TRANSLATING_POS" nodes="0>0|2|4|1" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="hydraulicLayerTone2"   pitchScale="2.5" volumeScale="0.4" linkNode="0>0|2|4|3" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>0|2|4|3" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="0.8" linkNode="0>0|2|4|3" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="0>0|2|4|3" fadeIn="0.1" fadeOut="0.05"/>
            <actionSound template="metalLowVar2"  pitchScale="1.0" volumeScale="3"   linkNode="0>0|2"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>0|2"/>
            <actionSound template="cylinderPunch" pitchScale="1.5" volumeScale="0.4" linkNode="0>0|2"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>0|2"/>
            <actionSound template="metalClose"    pitchScale="2.5" volumeScale="0.2" linkNode="0>0|2"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>0|2"/>
            <actionSound template="clackVar6"     pitchScale="1.0" volumeScale="1.0" linkNode="0>0|2"   actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="0>0|2"/>

            <actionSound template="metalLowVar2"  pitchScale="1.3" volumeScale="2.0"   linkNode="0>0|2" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|2"/>
            <actionSound template="cylinderPunch" pitchScale="1.8" volumeScale="0.2" linkNode="0>0|2"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|2"/>
            <actionSound template="metalClose"    pitchScale="2.8" volumeScale="0.1" linkNode="0>0|2"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|2"/>
            <actionSound template="clackVar6"     pitchScale="1.8" volumeScale="0.5" linkNode="0>0|2"   actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|2"/>
        </sounds>
    </cylindered>

    <foliageBending>
        <bendingNode minX="-0.5" maxX="0.5" minZ="1.9" maxZ="2.0" yOffset="-1.1" node="0>0|2" />
    </foliageBending>

    <animations>
        <animation name="moveSupport">
            <part node="0>0|2|5" startTime="0" endTime="0.2" startRot="0 0 90"  endRot="24 0 0" />
            <part node="0>0|2|5" startTime="0" endTime="0.2" startTrans="0.422 -0.697 1.642"  endTrans="0.422 -1.184 0.923" />
            <part node="0>0|2|6" startTime="0" endTime="0.2" startRot="0 0 270"  endRot="24 0 0" />
            <part node="0>0|2|6" startTime="0" endTime="0.2" startTrans="-0.422 -0.697 1.642"  endTrans="-0.422 -1.184 0.923" />
            <part node="0>0|2|5" startTime="0" endTime="0.1" visibility="false" />
            <part node="0>0|2|6" startTime="0" endTime="0.1" visibility="false" />
            <part node="0>0|2|5" startTime="0.1" endTime="0.2" visibility="true" />
            <part node="0>0|2|6" startTime="0.1" endTime="0.2" visibility="true" />
            
			<part node="0>0|3"   startTime="0" endTime="0.2" startTrans="0 0.902 0.568"  endTrans="0 1.41 0.46" />
            <part node="0>0|4"   startTime="0" endTime="0.2" startTrans="0 0.902 0.568"  endTrans="0 1.41 0.46" />
        	<part node="0>0|3"   startTime="0" endTime="0.2" startRot="-23 0 0"  endRot="6.5 0 0" />
            <part node="0>0|2|4|1"   startTime="0" endTime="0.2" startRot="157 0 0"  endRot="-173.5 0 0" />
        </animation>
    </animations>

    <ai>
        <agentAttachment width="1.3" height="2.2" length="2.8" lengthOffset="0"/>
    </ai>

    <tensionBeltObject>
        <meshNodes>
            <meshNode node="0>0|2|7|0"/>
            <meshNode node="0>0|2|7|1"/>
            <meshNode node="0>0|2|7|2"/>
            <meshNode node="0>0|2|7|3"/>
        </meshNodes>
    </tensionBeltObject>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

</vehicle>
