﻿<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer" 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>MRWK 6000</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <storePacks>
            <storePack>STARTER_GRAPE</storePack>
        </storePacks>
        <image>$data/vehicles/fuhrmann/trailer6000L/store_trailer6000L.png</image>
        <price>16500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FUHRMANN</brand>
        <category>grapeTools</category>
        <shopTranslationOffset>0 -0.16 0</shopTranslationOffset>
        <shopRotationOffset>-0.372 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>613888</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>104960</indexBufferMemoryUsage>
        <textureMemoryUsage>1507328</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>$data/vehicles/fuhrmann/trailer6000L/trailer6000L.i3d</filename>
        <size width="3" length="5.5" lengthOffset="-0.1"/>
        <components maxMass="7900">
            <component centerOfMass="0 0.6 -0.6" solverIterationCount="10" mass="1655"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.2"/>
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG" saveId="TRELLEBORG_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHT3/385_65R19_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelLeft"  forcePointRatio="0.3" initialCompression="20" suspTravel="0.12" spring="30" damper="50" yOffset="0.003"/>
                        <wheelChock parkingNode="wheelChock01"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHT3/385_65R19_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelRight" forcePointRatio="0.3" initialCompression="20" suspTravel="0.12" spring="30" damper="50" yOffset="0.003"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color0>SHARED_DA_METAL_BLACK</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.29 0.29 0.29" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false" scale="0.29 0.29 0.29" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.6"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="0.4" maxForce="1.1" maxForceMass="5500"/>
    </attachable>

    <attacherJoints>
        <attacherJoint node="trailerAttacherJoint" jointType="trailer" lowerRotLimit="25 70 70" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <licensePlates>
        <licensePlate node="licensePlateNodeBack"  position="BACK" preferedType="ELONGATED" placementArea="0.06 0.27 0.08 0.21"/>
    </licensePlates>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.6" diameter="0.02" straighteningFactor="0.5">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.6" diameter="0.02" straighteningFactor="0.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="electricIn01"  length="0.6" diameter="0.02" straighteningFactor="0.5">
           <objectChange node="electricIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <target attacherJointIndices="1" type="electric" node="electricAdapter" socket="electric"/>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electricIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="yellowRectangle_01"    filename="$data/shared/assets/lights/lizard/sideMarker11Orange.xml" />
        <sharedLight linkNode="yellowRectangle_02"    filename="$data/shared/assets/lights/lizard/sideMarker11Orange.xml" />
        <sharedLight linkNode="yellowRectangle_03"    filename="$data/shared/assets/lights/lizard/sideMarker11Orange.xml" />
        <sharedLight linkNode="yellowRectangle_04"    filename="$data/shared/assets/lights/lizard/sideMarker11Orange.xml" />
        <sharedLight linkNode="whiteRectangle_01"     filename="$data/shared/assets/reflectors/lizard/whiteRectangle_01.xml" />
        <sharedLight linkNode="whiteRectangle_02"     filename="$data/shared/assets/reflectors/lizard/whiteRectangle_01.xml" />
        <sharedLight linkNode="rearLight53Left"      filename="$data/shared/assets/lights/lizard/rearLight53_left.xml" />
        <sharedLight linkNode="rearLight53Right"     filename="$data/shared/assets/lights/lizard/rearLight53_right.xml" />
        <sharedLight linkNode="plateNumberLight02_01" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1"       lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <turnLightLeft node="turnLightLeftBack"/>
                <turnLightRight node="turnLightRightBack"/>
                <brakeLight node="backLightsHigh1"/>
                <reverseLight node="reverseLightHigh1"/>
            </high>
        </realLights>
    </lights>

    <animations>
        <animation name="tipAnimationBack">
            <part node="body" startTime="0.0" endTime="14" startRot="0 0 0" endRot="-70 0 0"/>
            <part node="effectJoint" startTime="0.0" endTime="14" startRot="0 0 0" endRot="70 0 0"/>

            <sound template="metalLowVar3"  startTime="0.01"  direction="1"  volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalOpen"     startTime="0.01"  direction="1"  volumeScale="1.4" pitchScale="0.9"/>
            <sound template="metalLowVar2"  startTime="13.99" direction="1"  volumeScale="2.5" pitchScale="0.7"/>
            <sound template="metalClose"    startTime="13.99" direction="1"  volumeScale="1.6" pitchScale="0.6"/>
            <sound template="clackVar6"     startTime="13.99" direction="1"  volumeScale="0.6" pitchScale="0.5"/>
            <sound template="cylinderPunch" startTime="13.99" direction="1"  volumeScale="1.0" pitchScale="0.9"/>
            <sound template="thudVar2"      startTime="13.9"  direction="-1" volumeScale="1.5" pitchScale="0.7"/>
            <sound template="clackVar6"     startTime="13.99" direction="-1" volumeScale="0.8" pitchScale="0.3"/>
            <sound template="clackVar1"     startTime="0.1"   direction="-1" volumeScale="0.8" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="0.01"  direction="-1" volumeScale="2.0" pitchScale="0.6"/>
            <sound template="metalLowVar3"  startTime="0.1"   direction="-1" volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="0.1"   direction="-1" volumeScale="2.0" pitchScale="0.9"/>
        </animation>
        <animation name="moveSupport">
            <part node="supportArm"      startTime="0" endTime="0.5" startTrans="0 0.377 0" endTrans="0 0.15 0"/>
            <part node="supportHandle"   startTime="0" endTime="0.5" startRot="0 0 0" endRot="-700 0 0"/>

            <sound template="clackVar1"  startTime="0.4"  direction="1"  volumeScale="1" pitchScale="1.5"   linkNode="attacherJoint"/>
            <sound template="clackVar5"  startTime="0.1"  direction="-1" volumeScale="0.8" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="latchSmall" startTime="0.49"                volumeScale="0.2" pitchScale="1.4" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="body">
                <dependentPart node="bodyHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="bodyHydraulic" referencePoint="bodyHydraulicRef" referenceFrame="bodyHydraulicRefFrame" divideTranslatingDistance="false">
                <translatingPart node="bodyHydraulicPunch01" maxZTrans="0.37"/>
                <translatingPart node="bodyHydraulicPunch02" maxZTrans="0.37"/>
                <translatingPart node="bodyHydraulicPunch03" maxZTrans="0.37"/>
                <translatingPart node="bodyHydraulicPunch04" maxZTrans="0.37"/>
                <translatingPart node="bodyHydraulicPunch05" maxZTrans="0.37"/>
                <translatingPart node="bodyHydraulicPunch06" maxZTrans="0.37"/>
            </movingPart>
        </movingParts>

         <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.5" volumeScale="2.2" linkNode="bodyHydraulic" actionNames="TRANSLATING_POS" nodes="bodyHydraulic"/>
            <actionSound template="defaultHydraulicSound" pitchScale="0.5" volumeScale="0.7" linkNode="bodyHydraulic" actionNames="TRANSLATING_NEG" nodes="bodyHydraulic"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="bodyHydraulic" actionNames="TRANSLATING_END_NEG" nodes="bodyHydraulicPunch02"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="bodyHydraulic" actionNames="TRANSLATING_END_NEG" nodes="bodyHydraulicPunch03"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0">
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypes="GRAPE" capacity="6000" >
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTargetNode" startZ="0.4" endZ="-1.83" invert="false" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.23" maxAllowedHeapAngle="10" fillUnitIndex="1"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadInfo" width="1.5" length="1.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0"  startTipTime="0.5"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <dischargeable>
        <dischargeNode node="dischargeNodeBack" emptySpeed="2000" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="2.0" length="0.5" zOffset="-1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectParticleBack" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="effectGrainBack" materialType="unloading" fadeTime="0.5" extraDistanceNode="dischargeNodeBack" extraDistance="0.2"/>
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.2" height="2.4" length="4.3" lengthOffset="0.5"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.1" maxX="1.1" minZ="-2.4" maxZ="1.2" yOffset="0.6" />
        <bendingNode minX="-0.2" maxX="0.2" minZ="1.2" maxZ="2.3" yOffset="0.6" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1" />
        <i3dMapping id="supportHandle" node="0>0|0|2" />
        <i3dMapping id="trailerAttacherJoint" node="0>0|0|3" />
        <i3dMapping id="electricAdapter" node="0>0|0|4|0" />
        <i3dMapping id="electricIn01_detached" node="0>0|0|4|1" />
        <i3dMapping id="electricIn01_detachedAdapter" node="0>0|0|4|1|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|4|2" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|0|4|2|0" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|4|3" />
        <i3dMapping id="hydraulicOut01_detachedAdapter" node="0>0|0|4|3|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|4|4" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|4|5" />
        <i3dMapping id="electricIn01" node="0>0|0|4|6" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="wheelChock01" node="0>0|1|2" />
        <i3dMapping id="plateNumberLight02_01" node="0>0|2|0|0" />
        <i3dMapping id="rearLight53Right" node="0>0|2|0|1" />
        <i3dMapping id="rearLight53Left" node="0>0|2|0|2" />
        <i3dMapping id="backLightsHigh1" node="0>0|2|1|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|1|1" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|2|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|2|1" />
        <i3dMapping id="reverseLightHigh1" node="0>0|2|3|0" />
        <i3dMapping id="body" node="0>0|3|0" />
        <i3dMapping id="bodyHydraulicRef" node="0>0|3|0|0" />
        <i3dMapping id="yellowRectangle_01" node="0>0|3|0|1|0|0" />
        <i3dMapping id="yellowRectangle_02" node="0>0|3|0|1|0|1" />
        <i3dMapping id="yellowRectangle_03" node="0>0|3|0|1|0|2" />
        <i3dMapping id="yellowRectangle_04" node="0>0|3|0|1|0|3" />
        <i3dMapping id="whiteRectangle_01" node="0>0|3|0|1|0|4" />
        <i3dMapping id="whiteRectangle_02" node="0>0|3|0|1|0|5" />
        <i3dMapping id="fillVolume" node="0>0|3|0|2|0" />
        <i3dMapping id="fillVolumeUnloadInfo" node="0>0|3|0|2|1" />
        <i3dMapping id="exactFillRootNode" node="0>0|3|0|2|2" />
        <i3dMapping id="fillAutoAimTargetNode" node="0>0|3|0|2|3" />
        <i3dMapping id="dischargeNodeBack" node="0>0|3|0|2|4" />
        <i3dMapping id="effectNodesBack" node="0>0|3|0|3|0|0" />
        <i3dMapping id="effectGrainBack" node="0>0|3|0|3|0|0|0" />
        <i3dMapping id="effectSmokeBack" node="0>0|3|0|3|0|0|1" />
        <i3dMapping id="effectJoint" node="0>0|3|0|3|0|0|2" />
        <i3dMapping id="particleNodesBack" node="0>0|3|0|3|0|1" />
        <i3dMapping id="effectParticleBack" node="0>0|3|0|3|0|1|0" />
        <i3dMapping id="bodyHydraulicRefFrame" node="0>0|3|1" />
        <i3dMapping id="bodyHydraulic" node="0>0|3|1|0" />
        <i3dMapping id="bodyHydraulicPunch01" node="0>0|3|1|0|0" />
        <i3dMapping id="bodyHydraulicPunch02" node="0>0|3|1|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch03" node="0>0|3|1|0|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch04" node="0>0|3|1|0|0|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch05" node="0>0|3|1|0|0|0|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch06" node="0>0|3|1|0|0|0|0|0|0|0" />
        <i3dMapping id="licensePlateNodeBack" node="0>0|4" />
    </i3dMappings>
</vehicle>
