﻿<?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 500</name>
        <specs>
            <workingWidth>5.0</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_leveler</function>
        </functions>
        <image>$data/vehicles/holaras/mes500/store_mes500.png</image>
        <price>7500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>HOLARAS</brand>
        <category>leveler</category>
        <shopRotationOffset>-0.045 0 0</shopRotationOffset>
        <shopHeight>3</shopHeight>
        <vertexBufferMemoryUsage>360192</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>60672</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_leveler</typeDesc>
        <filename>$data/vehicles/holaras/mes500/mes500.i3d</filename>
        <size width="3.8" length="2.3" lengthOffset="-0.3"/>
        <components>
            <component centerOfMass="0 0.2 -0.6" solverIterationCount="20" mass="1600" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJointConfigurations>
            <inputAttacherJointConfiguration name="$l10n_configuration_inputAttacher3Point" price="0">
                <inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" jointType="implement" isControllable="true" upperRotationOffset="0" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" >
                <distanceToGround lower="0.7153" upper="1.5" />
            </inputAttacherJoint>
            </inputAttacherJointConfiguration>
        </inputAttacherJointConfigurations>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01" adapterNode="hydraulicIn01_detached"  length="1.0" diameter="0.015" color="0.05 0.05 0.05">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" adapterNode="hydraulicOut01_detached" length="1.0" diameter="0.015" color="0.05 0.05 0.05">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02" adapterNode="hydraulicIn02_detached"  length="1.0" diameter="0.013" color="0.05 0.05 0.05">
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut02" adapterNode="hydraulicOut02_detached" length="1.0" diameter="0.013" 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="hydraulicArmLeft" />
            </movingTool>
            <movingTool node="rightArm">
                <dependentPart node="hydraulicArmRight" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulicArmLeft" referencePoint="hydraulicArmLeftRef" referenceFrame="mes500_main_component1" playSound="true">
                <translatingPart node="hydraulicArmLeftPunch" />
            </movingPart>
            <movingPart node="hydraulicArmRight" referencePoint="hydraulicArmRightRef" referenceFrame="mes500_main_component1" playSound="true">
                <translatingPart node="hydraulicArmRightPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="1.1" volumeScale="1" linkNode="hydraulicArmLeft"  actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicArmLeft"/>
            <actionSound template="defaultHydraulicSound" pitchScale="0.9" volumeScale="1" linkNode="hydraulicArmRight" actionNames="TRANSLATING_POS TRANSLATING_NEG" nodes="hydraulicArmRight"/>
        </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="-90 20 0" endRot="-90 125 0" />
            <part node="rightArm" startTime="0.0" endTime="3.0" startRot="-90 -20 0" endRot="-90 -125 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="12000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <leveler fillUnitIndex="1" maxFillLevelPerMS="35">
        <levelerNode node="levelerNode" width="5.4" zOffset="0.9" minDropWidth="3.6" maxDropWidth="4.8" minDropDirOffset="1" maxDropDirOffset="2" 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="mes500_main_component1" maxForce="60" 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.0" height="1.5" length="1.8" lengthOffset="-0.3"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.6" maxX="1.6"  minZ="-0.9" maxZ="0.7" yOffset="0.1" />
        <bendingNode minX="-1.15" maxX="0.05" minZ="-0.4" maxZ="-0.05" yOffset="0.1" node="occlustionArea03Start" />
        <bendingNode minX="-1.5" maxX="-0.35" minZ="-0.4" maxZ="-0.05" yOffset="0.1" node="occlustionArea02Start" />
    </foliageBending>

    <baseMaterial>
        <material name="mes500_mat" baseNode="mes500_vis">
            <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="mes500_main_component1" node="0>" />
        <i3dMapping id="mes500_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicIn02_detached" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicOut02_detached" node="0>0|0|2|3" />
        <i3dMapping id="hydraulicOut02" node="0>0|0|2|4" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|2|5" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|2|6" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|7" />
        <i3dMapping id="leftArm" node="0>0|1" />
        <i3dMapping id="hydraulicArmLeftRef" node="0>0|1|0" />
        <i3dMapping id="occlustionArea03Start" node="0>0|1|2|0" />
        <i3dMapping id="occlustionArea03Width" node="0>0|1|2|1" />
        <i3dMapping id="occlustionArea03Height" node="0>0|1|2|2" />
        <i3dMapping id="rightArm" node="0>0|2" />
        <i3dMapping id="hydraulicArmRightRef" node="0>0|2|0" />
        <i3dMapping id="occlustionArea02Start" node="0>0|2|2|0" />
        <i3dMapping id="occlustionArea02Width" node="0>0|2|2|1" />
        <i3dMapping id="occlustionArea02Height" node="0>0|2|2|2" />
        <i3dMapping id="hydraulicArmLeft" node="0>0|3|0" />
        <i3dMapping id="hydraulicArmLeftPunch" node="0>0|3|0|0" />
        <i3dMapping id="hydraulicArmRight" node="0>0|3|1" />
        <i3dMapping id="hydraulicArmRightPunch" 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" />
    </i3dMappings>
</vehicle>
