﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="leveler" 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>MES 400</name>
        <specs>
            <workingWidth>4.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_leveler</function>
        </functions>
        <image>$data/vehicles/holaras/mes400/store_mes400.png</image>
        <price>6800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>HOLARAS</brand>
        <category>leveler</category>
        <shopHeight>3</shopHeight>
        <vertexBufferMemoryUsage>298752</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>53248</indexBufferMemoryUsage>
        <textureMemoryUsage>1310720</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_leveler</typeDesc>
        <filename>$data/vehicles/holaras/mes400/mes400.i3d</filename>
        <size width="3.8" length="1.5" lengthOffset="-0.45"/>
        <components>
            <component centerOfMass="0 0.3 -0.3" solverIterationCount="20" mass="1350" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="$l10n_configuration_inputAttacher3Point" price="0">
                <inputAttacherJoint node="attacherJointBottomArm" topReferenceNode="attacherJointTopArm" jointType="implement" isControllable="true" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" upperRotationOffset="0" >
                    <distanceToGround lower="0.48" upper="1.5" />
                </inputAttacherJoint>
                <objectChange node="threePointHitch" visibilityActive="true"  visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
            <inputAttacherJointConfiguration name="$l10n_configuration_inputAttacherWheelLoader" price="0">
                <inputAttacherJoint node="attacherJointWheelLoader" jointType="wheelLoader" />
                <objectChange node="twoPointHitch" visibilityActive="true"  visibilityInactive="false"/>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1 2" type="hydraulicIn"  node="hydraulicIn01" adapterNode="hydraulicIn01_detached"  length="1.7" diameter="0.017" color="0.05 0.05 0.05">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="hydraulicOut" node="hydraulicOut01" adapterNode="hydraulicOut01_detached" length="1.7" diameter="0.017" color="0.05 0.05 0.05">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="hydraulicIn"  node="hydraulicIn02" adapterNode="hydraulicIn02_detached"  length="1.7" diameter="0.017" color="0.05 0.05 0.05">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="hydraulicOut" node="hydraulicOut02" adapterNode="hydraulicOut02_detached" length="1.7" diameter="0.017" color="0.05 0.05 0.05">
            <objectChange node="hydraulicOut02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <attacherJointControl maxTiltAngle="25" supportsDamping="true">
        <control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_HYDRAULICATTACHER1" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_TRANS" />
        <control controlFunction="controlAttacherJointTilt"   controlAxis="AXIS_HYDRAULICATTACHER2" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_ROTX" />

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>" />
        </sounds>
    </attacherJointControl>

    <cylindered>
        <movingTools>
            <movingTool node="leftArm">
                <dependentPart node="hydraulicLeftArm" />
            </movingTool>
            <movingTool node="rightArm">
                <dependentPart node="hydraulicRightArm" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulicLeftArm" referencePoint="hydraulicLeftArmRef" referenceFrame="mes400_main_component1" playSound="true">
                <translatingPart node="hydraulicLeftArmPunch" />
            </movingPart>
            <movingPart node="hydraulicRightArm" referencePoint="hydraulicRightArmRef" referenceFrame="mes400_main_component1" playSound="true">
                <translatingPart node="hydraulicRightArmPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="1" linkNode="hydraulicLeftArm"  actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicLeftArm"/>
            <actionSound template="defaultHydraulicSound" pitchScale="0.9" volumeScale="1" linkNode="hydraulicRightArm" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicRightArm"/>
        </sounds>
    </cylindered>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" >
                    <foldingPart animationName="folding" speedScale="1" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="folding">
            <part node="leftArm" startTime="0.0" endTime="3.0" startRot="0 20 0" endRot="0 115 0" />
            <part node="rightArm" startTime="0.0" endTime="3.0" startRot="0 -20 0" endRot="0 -115 0" />

            <sound template="clackVar4" startTime="2.99" direction="1"  volumeScale="0.7" pitchScale="1.8"/>
            <sound template="clackVar5" startTime="2.99" direction="1"  volumeScale="0.7" pitchScale="0.9"/>
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="0.9" pitchScale="0.7"/>
            <sound template="sheetImp02" startTime="0.1" direction="-1" volumeScale="1.4" pitchScale="0.8"/>
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits allowFoldingWhileFilled="false">
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk windrow" capacity="10000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <leveler fillUnitIndex="1" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="4.4" zOffset="0.9" minDropWidth="2.4" maxDropWidth="3.6" minDropDirOffset="1" maxDropDirOffset="1.5" foldMinLimit="0" foldMaxLimit="0.1">
            <smoothing allowed="true" radius="0.5" overlap="1.7" />

            <occlusionAreas>
                <occlusionArea startNode="occlustionArea01Start" widthNode="occlustionArea01Width" heightNode="occlustionArea01Height"/>
                <occlusionArea startNode="occlustionArea02Start" widthNode="occlustionArea02Width" heightNode="occlustionArea02Height"/>
                <occlusionArea startNode="occlustionArea03Start" widthNode="occlustionArea03Width" heightNode="occlustionArea03Height"/>
            </occlusionAreas>
        </levelerNode>

        <force node="mes400_main_component1" maxForce="50" direction="1" />

        <pickUpDirection>1</pickUpDirection>

        <effects>
            <effectNode effectNode="levelerEffectNode" effectClass="LevelerEffect" materialType="leveler" fadeTime="0.5" speed="1" maxHeight="1" />
        </effects>
    </leveler>

    <ai>
        <agentAttachment width="3.3" height="1.3" length="1.3" lengthOffset="-0.5"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-0.6" maxZ="0.2" yOffset="0.1" />
        <bendingNode minX="-0.85" maxX="-0.05" minZ="-0.4" maxZ="-0.05" yOffset="0.1" node="occlustionArea03Start" />
        <bendingNode minX="-1.1" maxX="-0.25" minZ="-0.4" maxZ="-0.05" yOffset="0.1" node="occlustionArea02Start" />
    </foliageBending>

    <baseMaterial>
        <material name="mes400_mat" baseNode="mes400_vis">
            <shaderParameter name="colorMat0" value="HOLARAS_RED"/>
        </material>
        <material name="threePointHitch_mat" baseNode="threePointHitch">
            <shaderParameter name="colorMat0" value="HOLARAS_RED"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="mes400_main_component1" node="0>" />
        <i3dMapping id="mes400_vis" node="0>0" />
        <i3dMapping id="attacherJointWheelLoader" node="0>0|0|0" />
        <i3dMapping id="attacherJointBottomArm" node="0>0|0|1" />
        <i3dMapping id="attacherJointTopArm" node="0>0|0|2" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|3|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|3|1" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|3|2" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|3|3" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|3|4" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|3|5" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|3|6" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|3|7" />
        <i3dMapping id="leftArm" node="0>0|1" />
        <i3dMapping id="hydraulicLeftArmRef" node="0>0|1|0" />
        <i3dMapping id="occlustionArea03Start" node="0>0|1|1|0" />
        <i3dMapping id="occlustionArea03Width" node="0>0|1|1|1" />
        <i3dMapping id="occlustionArea03Height" node="0>0|1|1|2" />
        <i3dMapping id="rightArm" node="0>0|2" />
        <i3dMapping id="hydraulicRightArmRef" node="0>0|2|0" />
        <i3dMapping id="occlustionArea02Start" node="0>0|2|1|0" />
        <i3dMapping id="occlustionArea02Width" node="0>0|2|1|1" />
        <i3dMapping id="occlustionArea02Height" node="0>0|2|1|2" />
        <i3dMapping id="hydraulicLeftArm" node="0>0|3|0" />
        <i3dMapping id="hydraulicLeftArmPunch" node="0>0|3|0|0" />
        <i3dMapping id="hydraulicRightArm" node="0>0|3|1" />
        <i3dMapping id="hydraulicRightArmPunch" node="0>0|3|1|0" />
        <i3dMapping id="levelerNode" node="0>0|4" />
        <i3dMapping id="levelerEffectNode" node="0>0|5|0" />
        <i3dMapping id="occlustionArea01Start" node="0>0|6|0" />
        <i3dMapping id="occlustionArea01Width" node="0>0|6|1" />
        <i3dMapping id="occlustionArea01Height" node="0>0|6|2" />
        <i3dMapping id="twoPointHitch" node="0>0|7|0" />
        <i3dMapping id="threePointHitch" node="0>0|7|1" />
    </i3dMappings>
</vehicle>
