﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="manureTrailer" 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>TSA 30000</name>
        <specs>
            <combination filterCategory="trucks" />
            <combination xmlFilename="$data/vehicles/krampe/dolly10L/dolly10L.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_tank</function>
            <function>$l10n_function_semiTrailer</function>
        </functions>
        <image>$data/vehicles/kotte/tsa/store_tsa.png</image>
        <price>95500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KOTTE</brand>
        <category>slurryTanks</category>
        <shopTranslationOffset>0 -0.002 0</shopTranslationOffset>
        <shopRotationOffset>-1.088 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>3604736</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>1121280</indexBufferMemoryUsage>
        <textureMemoryUsage>1900544</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_manureBarrel</typeDesc>
        <filename>$data/vehicles/kotte/tsa/tsa.i3d</filename>
        <size width="3" length="10" height="4.1" lengthOffset="1.2"/>
        <components maxMass="36000">
            <component centerOfMass="0 0.65 0.5" solverIterationCount="10" mass="6020" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="wheelFrontLeft"   forcePointRatio="0.5" initialCompression="20" suspTravel="0.10" spring="85" damper="75" yOffset="-0.02"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="false" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.0" repr="wheelFrontRight"  forcePointRatio="0.5" initialCompression="20" suspTravel="0.10" spring="85" damper="75" yOffset="-0.02"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="wheelMiddleLeft"  forcePointRatio="0.5" initialCompression="15" suspTravel="0.10" spring="85" damper="75" yOffset="0"/>
                        <wheelChock parkingNode="wheelChock01" />
                        <wheelChock parkingNode="wheelChock02" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="false" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.0" repr="wheelMiddleRight" forcePointRatio="0.5" initialCompression="15" suspTravel="0.10" spring="85" damper="75" yOffset="0"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="axisBackLeft"  driveNode="wheelBackLeft"  forcePointRatio="0.5" initialCompression="15" suspTravel="0.10" spring="85" damper="75" yOffset="0.025"/>
                        <steeringAxle scale="-0.7" rotMax="10" rotMin="-10" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiCrossTracHS3/385_65R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.0" repr="axisBackRight" driveNode="wheelBackRight" forcePointRatio="0.5" initialCompression="15" suspTravel="0.10" spring="85" damper="75" yOffset="0.025"/>
                        <steeringAxle scale="-0.7" rotMax="10" rotMin="-10" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <color0>SHARED_DA_METAL_BLACK</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelFrontLeft"   filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.27 0.335 0.335" />
            <hub linkNode="wheelFrontRight"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.27 0.335 0.335" />
            <hub linkNode="wheelMiddleLeft"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.27 0.335 0.335" />
            <hub linkNode="wheelMiddleRight" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.27 0.335 0.335" />
            <hub linkNode="wheelBackLeft"    filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.27 0.335 0.335" />
            <hub linkNode="wheelBackRight"   filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.27 0.335 0.335" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint jointType="semitrailer" node="attacherJoint" attacherHeight="1.33" />
        </inputAttacherJoints>
        <brakeForce force="0.55" maxForce="2" maxForceMass="36000"/>
        <support animationName="moveSupport" />
    </attachable>

    <lights>
        <sharedLight linkNode="rearLight22White" filename="$data/shared/assets/lights/lizard/rearLight22White.xml" />
        <sharedLight linkNode="rearLight22White1" filename="$data/shared/assets/lights/lizard/rearLight22White.xml" />
        <sharedLight linkNode="rearLight10" filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="rearLight11" filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="rearLight14" filename="$data/shared/assets/lights/lizard/rearLight10_left.xml" />
        <sharedLight linkNode="rearLight12" filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
        <sharedLight linkNode="rearLight13" filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
        <sharedLight linkNode="rearLight15" filename="$data/shared/assets/lights/lizard/rearLight10_right.xml" />
        <sharedLight linkNode="sideMarker01_left" filename="$data/shared/assets/lights/lizard/sideMarker01_left.xml" />
        <sharedLight linkNode="sideMarker01_right" filename="$data/shared/assets/lights/lizard/sideMarker01_right.xml" />
        <sharedLight linkNode="workingLight15" filename="$data/shared/assets/lights/lizard/workingLight15.xml" />
        <sharedLight linkNode="workingLight16" filename="$data/shared/assets/lights/lizard/workingLight15.xml" />
        <sharedLight linkNode="sideMarker05Orange" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange1" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange2" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange3" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange4" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker05Orange5" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="plateNumberLight02_01" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />
        <sharedLight linkNode="plateNumberLight02_02" filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />
        <sharedLight linkNode="redTriangle_02" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />
        <sharedLight linkNode="redTriangle_03" filename="$data/shared/assets/reflectors/lizard/redTriangle_02.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <light node="workLightBackHigh1" lightTypes="1"/>
                <brakeLight node="backLightsHigh1"/>
                <turnLightLeft  node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLightHigh1" />
            </high>
        </realLights>

        <beaconLights>
            <beaconLight node="beaconLight03" filename="$data/shared/assets/beaconLights/lizard/beaconLight03.xml" />
        </beaconLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateNodeBack" position="BACK" preferedType="ELONGATED" placementArea="0.08 0.28 0.08 0.28"/>
    </licensePlates>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="airDoubleRed"    node="airDoubleRed"    length="1.8" diameter="0.015" minCenterPointOffset="0 -0.2 0" maxCenterPointOffset="0 0 0" straighteningFactor="1" outgoingAdapter="DEFAULT" socket="air_red"/>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airDoubleYellow" length="1.8" diameter="0.015" minCenterPointOffset="0 -0.2 0" maxCenterPointOffset="0 0 0" straighteningFactor="1" outgoingAdapter="DEFAULT" socket="air_yellow"/>
        <hose inputAttacherJointIndices="1" type="electric"        node="electric"        length="1.8" diameter="0.008" minCenterPointOffset="0 -0.2 0" maxCenterPointOffset="0 0 0" straighteningFactor="1" outgoingAdapter="DEFAULT" socket="electric"/>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"     node="hydraulicIn01"   length="1.8" diameter="0.02" minCenterPointOffset="0 -0.2 0" maxCenterPointOffset="0 0 0" straighteningFactor="1" outgoingAdapter="DEFAULT" socket="hydraulic01"/>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="chockSupport1" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
    </dynamicallyLoadedParts>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0 -0.215 0"/>
            <part node="colPart01" startTime="0" endTime="0.1" startTrans="0 0.3 0" endTrans="0 0 0"/>
            <part node="colPart02" startTime="0" endTime="0.1" startTrans="0 0.3 0" endTrans="0 0 0"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="0.49" volumeScale="1" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="clackVar6"             startTime="0.01" direction="-1" volumeScale="1" pitchScale="0.7" linkNode="attacherJoint"/>
        </animation>
        <animation name="fillLevelAnim">
            <part node="measurementArm" startTime="0" endTime="0.2" startRot="0 0 0" endRot="0 0 141.927"/>
        </animation>
    </animations>

    <cylindered>
        <movingParts>
            <movingPart node="steeringBar" referencePoint="steeringBarRef" referenceFrame="steeringBarRef" isActiveDirty="true" maxUpdateDistance="25"/>
        </movingParts>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="SLURRYTANK" capacity="30000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fillLevelAnim"/>
                        <measurementNodes>
                            <measurementNode node="fillMeasurementNode" />
                        </measurementNodes>
                    </fillUnit>
                    <fillTrigger consumePtoPower="true"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>

        <sounds>
            <fill template="SLURRY_01" />
        </sounds>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="1000"/>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="1000" fillUnitIndex="1" unloadInfoIndex="3" canDischargeToGround="false" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
            <dischargeSound template="SLURRY_01"/>
        </dischargeNode>
    </dischargeable>

    <foliageBending>
        <bendingNode minX="-1.35" maxX="1.35" minZ="-3.5" maxZ="3.3" yOffset="0.6" />
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4 5 6" width="2.7" height="4" length="8.5" lengthOffset="1.1"/>
    </ai>

    <baseMaterial>
        <material name="tsa_mat" baseNode="tsa_vis">
            <shaderParameter name="colorMat0" value="KOTTE_GREEN1"/>
            <shaderParameter name="colorMat3" value="SHARED_BLACK1"/>
        </material>
        <material name="tsaDecalsColor_mat" baseNode="colorableDecals">
            <shaderParameter name="colorMat0" value="1.0 1.0 1.0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations price="1000" useDefaultColors="true" defaultColorIndex="0">
        <baseMaterialConfiguration color="KOTTE_GREEN1" name="$l10n_ui_colorGreen"/>
        <baseMaterialConfiguration color="KOTTE_GREEN2" name="$l10n_ui_colorGreenDark"/>
        <material name="tsa_mat" shaderParameter="colorMat0" />
        <material name="tsaDecalsColor_mat" shaderParameter="colorMat0" useContrastColor="true"/>
    </baseMaterialConfigurations>

    <rimColorConfigurations useDefaultColors="false">
        <rimColorConfiguration name="$l10n_ui_colorChrome" color="SHARED_WHITE2" material="3" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorSilver" color="SHARED_WHITE1" material="18" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorWhite"  color="SHARED_WHITE2" material="0" price="0"/>
        <rimColorConfiguration name="$l10n_ui_colorBlack"  color="SHARED_DA_METAL_BLACK" material="0" price="0"/>
    </rimColorConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="1" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="tsa_main_component1" node="0>" />
        <i3dMapping id="tsa_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0" />
        <i3dMapping id="colPart01" node="0>0|0|1|0|0" />
        <i3dMapping id="colPart02" node="0>0|0|1|0|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|0" />
        <i3dMapping id="electric" node="0>0|0|2|1" />
        <i3dMapping id="airDoubleYellow" node="0>0|0|2|2" />
        <i3dMapping id="airDoubleRed" node="0>0|0|2|3" />
        <i3dMapping id="wheelFrontLeft" node="0>0|1|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|1|1" />
        <i3dMapping id="wheelMiddleLeft" node="0>0|1|2" />
        <i3dMapping id="wheelMiddleRight" node="0>0|1|3" />
        <i3dMapping id="axisBackLeft" node="0>0|1|4|0" />
        <i3dMapping id="wheelBackLeft" node="0>0|1|4|0|0|0" />
        <i3dMapping id="steeringBar" node="0>0|1|4|0|1" />
        <i3dMapping id="axisBackRight" node="0>0|1|5|0" />
        <i3dMapping id="wheelBackRight" node="0>0|1|5|0|0|0" />
        <i3dMapping id="steeringBarRef" node="0>0|1|5|0|1" />
        <i3dMapping id="wheelChock01" node="0>0|1|6" />
        <i3dMapping id="chockSupport" node="0>0|1|7" />
        <i3dMapping id="wheelChock02" node="0>0|1|8" />
        <i3dMapping id="chockSupport1" node="0>0|1|9" />
        <i3dMapping id="redTriangle_02" node="0>0|2|0|0" />
        <i3dMapping id="redTriangle_03" node="0>0|2|0|1" />
        <i3dMapping id="plateNumberLight02_01" node="0>0|2|0|2" />
        <i3dMapping id="plateNumberLight02_02" node="0>0|2|0|3" />
        <i3dMapping id="rearLight10" node="0>0|2|0|4" />
        <i3dMapping id="rearLight11" node="0>0|2|0|5" />
        <i3dMapping id="rearLight12" node="0>0|2|0|6" />
        <i3dMapping id="rearLight13" node="0>0|2|0|7" />
        <i3dMapping id="rearLight14" node="0>0|2|0|8" />
        <i3dMapping id="rearLight15" node="0>0|2|0|9" />
        <i3dMapping id="sideMarker01_left" node="0>0|2|0|10" />
        <i3dMapping id="sideMarker01_right" node="0>0|2|0|11" />
        <i3dMapping id="beaconLight03" node="0>0|2|0|12" />
        <i3dMapping id="workingLight15" node="0>0|2|0|13" />
        <i3dMapping id="workingLight16" node="0>0|2|0|14" />
        <i3dMapping id="sideMarker05Orange" node="0>0|2|0|15" />
        <i3dMapping id="sideMarker05Orange1" node="0>0|2|0|16" />
        <i3dMapping id="sideMarker05Orange2" node="0>0|2|0|17" />
        <i3dMapping id="sideMarker05Orange3" node="0>0|2|0|18" />
        <i3dMapping id="sideMarker05Orange4" node="0>0|2|0|19" />
        <i3dMapping id="sideMarker05Orange5" node="0>0|2|0|20" />
        <i3dMapping id="rearLight22White" node="0>0|2|0|21" />
        <i3dMapping id="rearLight22White1" node="0>0|2|0|22" />
        <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="workLightBackHigh1" node="0>0|2|3|0" />
        <i3dMapping id="reverseLightHigh1" node="0>0|2|4|0" />
        <i3dMapping id="measurementArm" node="0>0|3|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|4|0" />
        <i3dMapping id="fillTrigger" node="0>0|4|1" />
        <i3dMapping id="dischargeNode" node="0>0|4|2" />
        <i3dMapping id="dischargeTrigger" node="0>0|4|3" />
        <i3dMapping id="fillMeasurementNode" node="0>0|4|4" />
        <i3dMapping id="licensePlateNodeBack" node="0>0|5" />
        <i3dMapping id="colorableDecals" node="0>0|6|3" />
    </i3dMappings>
</vehicle>
