<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="waterTrailer" 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>550</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>$data/vehicles/abi/waterTrailer550/store_waterTrailer550.png</image>
        <price>5850</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ABI</brand>
        <category>barrels</category>
        <shopTranslationOffset>0 0.225 0</shopTranslationOffset>
        <shopRotationOffset>-0.184 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>699648</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>213760</indexBufferMemoryUsage>
        <textureMemoryUsage>458752</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_waterTrailer</typeDesc>
        <filename>$data/vehicles/abi/waterTrailer550/waterTrailer550.i3d</filename>
        <size width="2.05" length="3.85" height="1.78" lengthOffset="0.38"/>
        <components maxMass="2700">
            <component centerOfMass="0 0.65 -0.3" solverIterationCount="10" mass="374" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL_TRAILED" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/275_65R18.xml" isLeft="true" hasTireTracks="true" hasParticles="true" configId="rimsPickup06">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.2" repr="wheelLeft"  forcePointRatio="0.2" initialCompression="5" suspTravel="0.05" spring="60" damper="20"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/terrainContactHT/275_65R18.xml" isLeft="false" hasTireTracks="true" hasParticles="true" configId="rimsPickup06">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.2" repr="wheelRight" forcePointRatio="0.2" initialCompression="5" suspTravel="0.05" spring="60" damper="20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailerLow" attacherHeight="0.5" />
            <inputAttacherJoint node="attacherJoint" jointType="trailerCar" attacherHeight="0.5" />
        </inputAttacherJoints>
        <brakeForce force="0.1" maxForce="0.25" maxForceMass="2600"/>
        <support animationName="moveSupport" />
        <sounds>
            <active file="$data/sounds/tools/sowing/generalRattle_02.wav" innerRadius="10" outerRadius="50" volumeScale="8.6" isLocalSound="true" pitchScale="1.2">
                <volume indoor="0.7" outdoor="0.9" >
                    <modifier type="WHEEL_SUSPENSION" value="-0.08" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.06" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.04" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.03" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.02" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.01" modifiedValue="0.1"/>
                    <modifier type="WHEEL_SUSPENSION" value="-0.00" modifiedValue="0.0"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.01" modifiedValue="0.1"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.02" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.03" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.04" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.06" modifiedValue="0.2"/>
                    <modifier type="WHEEL_SUSPENSION" value="0.08" modifiedValue="0.2"/>

                    <modifier type="SPEED" value="0.0" modifiedValue="0.0"/>
                    <modifier type="SPEED" value="2.0" modifiedValue="1.0"/>
                    <modifier type="SPEED" value="40.0" modifiedValue="1.0"/>
                </volume>
                <lowpassCutoffFrequency indoor="250" outdoor="20000" />
                <lowpassGain indoor="0.5" outdoor="1" />
            </active>
        </sounds>
    </attachable>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.06 0.26 0.09 0.15"/>
    </licensePlates>

    <lights>
        <sharedLight linkNode="plateNumberLight01" filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" />

        <realLights>
            <high>
                <light node="licensePlateLightHigh" lightTypes="0"/>
            </high>
        </realLights>
    </lights>

    <animations>
        <animation name="moveSupport">
            <part node="supportArm" startTime="0.25" endTime="0.5" startTrans="0 0.07 0" endTrans="0 -0.23 0" />
            <part node="supportWinder" startTime="0.25" endTime="0.5" startRot="0 0 0" endRot="0 0 -720" />
            <part node="supportHolder" startTime="0" endTime="0.25" startRot="0 0 -90" endRot="0 0 0" />

            <sound template="slideOpen" startTime="0.01" direction="1"  volumeScale="1.5" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="slideOpen" startTime="0.49" direction="-1" volumeScale="1.5" pitchScale="1.4" linkNode="attacherJoint"/>
            <sound template="clackVar1" startTime="0.14"                volumeScale="1.1" pitchScale="1.1" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="KEROSENE CRUDEOIL DIESEL MILK BUFFALOMILK WATER LIQUIDFERTILIZER HERBICIDE LIQUIDMANURE LIQUIDLIME" capacity="10000" updateMass="false" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="1500" fillUnitIndex="1" canDischargeToGround="false" allowAIDischarge="true">
            <info width="1.0" length="0.5" zOffset="0" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <fillTriggerVehicle triggerNode="waterTrigger" fillUnitIndex="1" litersPerSecond="1500"/>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="1500" fillNode="agi550_main_component1">
        <sounds>
            <refill template="defaultRefuelSound" linkNode="0>" />
        </sounds>
    </waterTrailer>

    <foliageBending>
        <bendingNode minX="-1.02" maxX="1.02" minZ="-1.6" maxZ="0.55" yOffset="0.2" />
        <bendingNode minX="-0.6" maxX="0.6" minZ="0.55" maxZ="1.4" yOffset="0.2" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="1.4" maxZ="2.1" yOffset="0.2" />
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.08" height="1.77" length="3.2" lengthOffset="0.73"/>
    </ai>

    <tipOccluder>
        <occlusionArea start="occlusionAreaStart" width="occlusionAreaWidth" height="occlusionAreaHeight" />
    </tipOccluder>

    <rimColorConfigurations>
        <rimColorConfiguration materialTemplateName="RIM_CONFIGURATION_CHROME" price="1000"/>
        <rimColorConfiguration materialTemplateName="RIM_DEFAULT"/>
        <rimColorConfiguration materialTemplateName="RIM_CONFIGURATION_WHITE" isDefault="true"/>
        <rimColorConfiguration materialTemplateName="RIM_CONFIGURATION_BLACK"/>
    </rimColorConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="agi550_main_component1" node="0>" />
        <i3dMapping id="waterTrailer550_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="supportHolder" node="0>0|0|1|0" />
        <i3dMapping id="supportArm" node="0>0|0|1|0|0|0" />
        <i3dMapping id="supportWinder" node="0>0|0|1|0|1|0" />
        <i3dMapping id="plateNumberLight01" node="0>0|1|0" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|1|1" />
        <i3dMapping id="wheelLeft" node="0>0|2|0" />
        <i3dMapping id="wheelRight" node="0>0|2|1" />
        <i3dMapping id="dischargeNode" node="0>0|3|0" />
        <i3dMapping id="dischargeTrigger" node="0>0|3|1" />
        <i3dMapping id="waterTrigger" node="0>0|4" />
        <i3dMapping id="exactFillRootNode" node="0>0|5" />
        <i3dMapping id="occlusionAreaStart" node="0>0|7|0" />
        <i3dMapping id="occlusionAreaWidth" node="0>0|7|1" />
        <i3dMapping id="occlusionAreaHeight" node="0>0|7|2" />
        <i3dMapping id="licensePlateBack" node="0>0|8" />
    </i3dMappings>
</vehicle>
