﻿<?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>MSS 3700</name>
        <specs>
            <workingWidth>3.7</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_leveler</function>
        </functions>
        <image>$data/vehicles/duevelsdorf/mss3700/store_mss3700.png</image>
        <price>2450</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DUEVELSDORF</brand>
        <category>leveler</category>
        <shopTranslationOffset>0 -0.004 0</shopTranslationOffset>
        <shopRotationOffset>0.366 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>293632</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>75520</indexBufferMemoryUsage>
        <textureMemoryUsage>1048576</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_leveler</typeDesc>
        <filename>$data/vehicles/duevelsdorf/mss3700/mss3700.i3d</filename>
        <size width="4.5" length="1.5" />
        <components>
            <component centerOfMass="0 0.3 0" solverIterationCount="20" mass="725" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" 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.4" upper="1.1" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

    <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>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm_attached"   startTime="0"    endTime="0.01"  visibility="true" />
            <part node="supportArm_attached"   startTime="0.01" endTime="0.02"  visibility="false" />
            <part node="supportArm_detached"   startTime="0"    endTime="0.01"  visibility="false" />
            <part node="supportArm_detached"   startTime="0.01" endTime="0.02"  visibility="true" />

            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="0.8" pitchScale="1.1" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk windrow" capacity="5000" showInShop="false" showOnHud="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <leveler fillUnitIndex="1" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="4.1" zOffset="0.9" minDropWidth="2.0" maxDropWidth="4.0" minDropDirOffset="1" maxDropDirOffset="1.6">
            <smoothing allowed="true" radius="0.5" overlap="1.7" />

            <occlusionAreas>
                <occlusionArea startNode="occlustionArea01Start" widthNode="occlustionArea01Width" heightNode="occlustionArea01Height"/>
            </occlusionAreas>
        </levelerNode>

        <force node="mss3700_main_component1" maxForce="40" 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.7" height="1.3" length="0.5" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.9" maxX="1.9" minZ="-0.4" maxZ="0.4" yOffset="0.1" />
    </foliageBending>

    <baseMaterial>
        <material name="MSS3000_mat" baseNode="duevelsdorf_vis">
            <shaderParameter name="colorMat0" value="DUEVELSDORF_GREEN1"/>
        </material>
    </baseMaterial>

    <i3dMappings>
        <i3dMapping id="mss3700_main_component1" node="0>" />
        <i3dMapping id="duevelsdorf_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|0|1" />
        <i3dMapping id="supportArm_attached" node="0>0|0|2|0" />
        <i3dMapping id="supportArm_detached" node="0>0|0|2|1" />
        <i3dMapping id="levelerNode" node="0>0|1|0" />
        <i3dMapping id="levelerEffectNode" node="0>0|1|1|0" />
        <i3dMapping id="occlustionArea01Start" node="0>0|1|2|0" />
        <i3dMapping id="occlustionArea01Width" node="0>0|1|2|1" />
        <i3dMapping id="occlustionArea01Height" node="0>0|1|2|2" />
    </i3dMappings>
</vehicle>
