﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="silageRoller" 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>2600</name>
        <specs>
            <workingWidth>2.6</workingWidth>
            <combination filterCategory="weights" filterSpec="weight" filterSpecMin="900" filterSpecMax="1100"/>
        </specs>
        <functions>
            <function>$l10n_function_silageCompressor</function>
        </functions>
        <image>$data/vehicles/duevelsdorf/silagewalze2600/store_silagewalze2600.png</image>
        <price>7000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DUEVELSDORF</brand>
        <category>silocompaction</category>
        <shopTranslationOffset>0 0.006 0</shopTranslationOffset>
        <shopRotationOffset>0.818 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>458752</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>136704</indexBufferMemoryUsage>
        <textureMemoryUsage>720896</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_silageRoller</typeDesc>
        <filename>$data/vehicles/duevelsdorf/silagewalze2600/silagewalze2600.i3d</filename>
        <size width="3" length="1.5"/>
        <speedLimit value="5"/>
        <components>
            <component centerOfMass="0 0.3 0.1" solverIterationCount="10" mass="2000" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <wheels>
        <wheelConfigurations>
             <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                 <wheels>
                     <wheel isLeft="false" hasParticles="true" >
                         <physics restLoad="0.9" repr="wheel01" radius="0.457" mass="0.2" width="0.5" forcePointRatio="0.5" initialCompression="25" suspTravel="0.05" spring="65" damper="30" rotationDamping="0.001"/>
                     </wheel>
                     <wheel isLeft="false" hasParticles="true" >
                         <physics restLoad="0.9" repr="wheel02" radius="0.457" mass="0.2" width="0.5" forcePointRatio="0.5" initialCompression="25" suspTravel="0.05" spring="65" damper="30" rotationDamping="0.001"/>
                     </wheel>
                 </wheels>
             </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <speedRotatingParts>
        <speedRotatingPart node="roller" wheelIndex="1" />
    </speedRotatingParts>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint  node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotLimitScale="0 0 0" upperRotationOffset="5" lowerRotationOffset="-5" needsLowering="false">
                <distanceToGround lower="0.6" upper="1.5" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.1"/>
    </attachable>

    <bunkerSiloCompacter compactingScale="5" useSpeedLimit="true">
        <sounds>
            <rolling template="MEADOW_ROLLER_WORK" linkNode="silagewalze2600_main_component1"/>
        </sounds>
    </bunkerSiloCompacter>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm"     startTime="0" endTime="0.5" startTrans="0 0.715 0" endTrans="0 0 0" />

            <sound template="clackVar6" startTime="0.09" pitchScale="1.3" volumeScale="1" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <ai>
        <agentAttachment width="2.6" height="1.4" length="1.0" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-0.6" maxZ="0.4" yOffset="0.2" />
    </foliageBending>

    <baseMaterial>
        <material name="duvelsdorfSilagewalze3000_mat" baseNode="silagewalze2600_vis">
            <shaderParameter name="colorMat0" value="DUEVELSDORF_GREEN1"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="silagewalze2600_main_component1" node="0>" />
        <i3dMapping id="silagewalze2600_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|1" />
        <i3dMapping id="wheel01" node="0>0|2" />
        <i3dMapping id="wheel02" node="0>0|3" />
        <i3dMapping id="roller" node="0>0|4" />
        <i3dMapping id="supportArm" node="0>0|5" />
    </i3dMappings>
</vehicle>
