<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="hookLiftContainerTrailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>
            <en>Grain container LM</en>
            <de>Getreidecontainer LM</de>
            <fr>Benne à grain LM</fr>
            <it>Container grano LM</it>
            <es>Contenedor de grano LM</es>
            <pt>Contentor de cereais LM</pt>
            <br>Contêiner de cereais LM</br>
            <nl>Graancontainer LM</nl>
            <pl>Kontener na ziarno LM</pl>
            <cz>Kontejner na zrní LM</cz>
            <hu>Gabonakonténer LM</hu>
            <ro>Container p. cereale LM</ro>
            <ru>Контейнер под зерно LM</ru>
            <tr>Tahıl konteyneri LM</tr>
            <kr>곡물 컨테이너 LM</kr>
            <jp>穀物コンテナ LM</jp>
            <cs>谷物集装箱 LM</cs>
            <ct>穀物集裝箱 LM</ct>
        </name>
        <specs>
            <capacity unit="$l10n_unit_liter">45000</capacity>
            <combination>ITR 26.33 HD</combination>
        </specs>
        <functions>
            <function>$l10n_function_hookLiftContainer</function>
        </functions>
        <image>store/grain.dds</image>
        <price>42000</price>
        <dailyUpkeep>30</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ITRUNNER</brand>
        <category>tippers</category>
        <vertexBufferMemoryUsage>135720</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>24312</indexBufferMemoryUsage>
        <textureMemoryUsage>12342768</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_container</typeDesc>
    <filename>itRunner/containerSilageLM.i3d</filename>

    <size width="3.5" length="8.5" lengthOffset="0.2"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel restLoad="0.9" repr="0>0" radius="0.085" initialCompression="50" suspTravel="0.05" spring="300" damper="100" frictionScale="0.35" mass="0.02" maxLatStiffness="300" maxLatStiffnessLoad="3"/>
        <wheel restLoad="0.9" repr="0>1" radius="0.085" initialCompression="50" suspTravel="0.05" spring="300" damper="100" frictionScale="0.35" mass="0.02" maxLatStiffness="300" maxLatStiffnessLoad="3"/>
    </wheels>

    <brakeForce>0.5</brakeForce>

    <cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />

    <inputAttacherJoints>
        <inputAttacherJoint index="0>2" jointType="hookLift" allowsJointRotLimitMovement="false" upperRotationOffset="0" forceSelectionOnAttach="false"/>
    </inputAttacherJoints>

    <fillUnits>
        <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="45000" />
    </fillUnits>

    <fillVolumes>
        <volumes>
            <volume index="0>3|5|0" >
                <deformNode index="0>3|7|0" />
                <deformNode index="0>3|7|1" />
                <deformNode index="0>3|7|2" />
                <deformNode index="0>3|7|3" />
            </volume>
        </volumes>

        <heights>
            <height fillVolumeIndex="1">
                <refNode index="0>3|6|0" />
                <refNode index="0>3|6|1" />
                <node index="0>3|2|0" baseScale="1 1 1" transAxis="0 1 0" orientateToWorldY="true" />
            </height>
            <height fillVolumeIndex="1">
                <refNode index="0>3|0|2" />
                <node index="0>3|2|2" baseScale="1 1 1" transAxis="0 0 0" orientateToWorldY="true"/>
            </height>
        </heights>

        <unloadInfos>
            <unloadInfo fillVolumeIndex="1" >
                <node index="0>3|6|0" width="1.0" length="2.6" minHeight="0.7" priority="2" />
                <node index="0>3|6|1" width="1.0" length="2.6" minHeight="0.7" priority="2" />
                <node index="0>3|6|2" width="1.0" length="9.6" />
                <node index="0>3|6|3" width="1.0" length="9.6" />
            </unloadInfo>
            <unloadInfo fillVolumeIndex="1" >
                <node index="0>3|6|4" width="0.6" length="0.6" minHeight="0.7" priority="2" />
                <node index="0>3|6|2" width="1.0" length="9.6" />
                <node index="0>3|6|3" width="1.0" length="9.6" />
            </unloadInfo>
        </unloadInfos>
    </fillVolumes>

    <tipReferencePoints>
        <tipReferencePoint index="0>3|4" width="2.5" />
        <tipReferencePoint index="0>3|4" width="0.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="0.2" dischargeEndTime="16" name="info_tipSideBack">
            <tipEffect>
                <effectNode effectNode="0>3|2|0" materialType="unloading" materialTypeId="3" fadeTime="0.5" />
                <effectNode effectNode="0>3|2|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </tipEffect>
            <fillVolume>
                <unloadInfo index="1"/>
                <height index="1"/>
            </fillVolume>
        </tipAnimation>
        <tipAnimation speedScale="1" closeSpeedScale="-3" animationName="tipAnimationGrainDoor" dischargeStartTime="0.3" dischargeEndTime="45" name="info_tipSideBackGrainDoor">
            <tipEffect>
                <effectNode effectNode="0>3|2|2" materialType="unloading" materialTypeId="3" fadeTime="0.5" />
                <effectNode effectNode="0>3|2|3" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </tipEffect>
            <fillVolume>
                <unloadInfo index="2"/>
                <height index="2"/>
            </fillVolume>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>4" />
    <fillAutoAimTargetNode index="0>5" startZ="3" endZ="-2.8" invert="false" fillUnitIndex="1" startPercentage="25"/>
    <fillMassNode index="0>" />

    <movingTools>
        <!-- backTipping -->
        <movingTool index="0>3|0" playSound="true">
            <dependentPart index="0>3|1" />
        </movingTool>
        <movingTool index="0>3|0|0|0">
            <dependentPart index="0>3|0|0|1" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>3|1" referencePoint="0>3|0|1" referenceFrame="0>3|3">
            <translatingPart index="0>3|1|0" />
        </movingPart>
        <movingPart index="0>3|0|0|1" referencePoint="0>3|0|0|0|0" localReferencePoint="0>3|0|0|1|0" referenceFrame="0>3|0|0|2">
            <dependentPart index="0>3|0|0|1|0" />
        </movingPart>
        <movingPart index="0>3|0|0|1|0" referencePoint="0>3|0|0|0|0" referenceFrame="0>3|0|0|0|0" scaleZ="true" />
    </movingParts>

    <animations>
        <!-- backtipping -->
        <animation name="tipAnimationBack">
            <part node="0>3|0"   startTime="0" endTime="4" startRot="0 0 0" endRot="100 0 0" />

            <part node="0>3|7|0" startTime="0" endTime="2" startTrans="-1.163 2.077 -4.456" endTrans="-1.163 2.077 -3.881" />
            <part node="0>3|7|1" startTime="0" endTime="2" startTrans="1.163 2.077 -4.456" endTrans="1.163 2.077 -3.881" />
            <part node="0>3|7|2" startTime="0" endTime="2" startTrans="-1.163 2.077 -1.792" endTrans="-1.163 2.077 -1.492" />
            <part node="0>3|7|3" startTime="0" endTime="2" startTrans="1.163 2.077 -1.792" endTrans="1.163 2.077 -1.492" />

        </animation>
        <!-- backtipping with opened graindoor -->
        <animation name="tipAnimationGrainDoor">
            <part node="0>3|0|0|0" startTime="0" endTime="0.6" startTrans="-0.1937 -0.11067 -0.01116" endTrans="-0.1937 0.18792 -0.01116" />
        </animation>
    </animations>

    <baseColorConfigurations useDefaultColors="true" price="1200" icon="$dataS2/menu/hud/configurations/config_color.png">
        <baseColorConfiguration color="0.0529 0.0865 0.0242 1" />
        <colorNode node="0>3" />
        <colorNode node="0>3|8" />
    </baseColorConfigurations>

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="1">
        <component1 centerOfMass="0 0.2 0" solverIterationCount="15" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
