<?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>FT 500</name>
        <specs>
            <combination xmlFilename="xml/fendt380gta.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>store/store_fluidTank.png</image>
        <price>3250</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>FENDT</brand>
        <category>fendtPackTool</category>
		
        <shopHeight>2.2</shopHeight>
        <shopTranslationOffset>0 -0.001 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>468736</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>90624</indexBufferMemoryUsage>
        <textureMemoryUsage>2031616</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>i3D/fluidTank.i3d</filename>
        <size width="3.5" length="2" lengthOffset="0"/>
        <components>
            <component centerOfMass="0 0.25 0" solverIterationCount="10" mass="350" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>
	
	<dynamicallyLoadedParts>
		<dynamicallyLoadedPart node="1|1" linkNode="electric_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
		<dynamicallyLoadedPart node="1|5" linkNode="isobus_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" hardAttach="true" jointType="attachableToolGTA01"/>
		</inputAttacherJoints>
		<support animationName="moveSupport" />
    </attachable>
	
	<lights>
        <defaultLights>
            <defaultLight shaderNode="defaultLight_static" lightTypes="0" />
        </defaultLights>
    </lights>
	
    <animations>
        <animation name="moveSupport">
			<part node="supportColliLeftBack"   startTime="0"    endTime="0.01" startTrans="0.262 1.41 -0.248"  endTrans="1.187 0 -0.248" />
			<part node="supportColliLeftFront"  startTime="0"    endTime="0.01" startTrans="0.2 1.227 0.255"    endTrans="0.571 0 1.067" />
			<part node="supportColliRightBack"  startTime="0"    endTime="0.01" startTrans="-0.262 1.41 -0.248" endTrans="-1.187 0 -0.248" />
			<part node="supportColliRightFront" startTime="0"    endTime="0.01" startTrans="-0.2 1.227 0.255"   endTrans="-0.574 0 1.065" />
            <part node="supportColli" 			startTime="0"    endTime="0.3"  startTrans="0 0.7 0" 			endTrans="0 0 0"/>
			<part node="supportFeets" 			startTime="0"    endTime="0"    visibility="false" />
            <part node="supportFeets" 			startTime="0.01" endTime="0"    visibility="true" />
			<part node="attacherBolt" 			startTime="0"    endTime="0"    visibility="true" />
            <part node="attacherBolt" 			startTime="0.01" endTime="0"    visibility="false" />
		</animation>
		
		<animation name="fillLevel">
            <part node="fillLevelIndicator" startTime="0" endTime="1" startTrans="0 -0.315 0" endTrans="0 0.219 0" />
        </animation>
		
		<animation name="tipAnimationFront">
			<part node="drainValveSwitch" startTime="0.0" endTime="1" startRot="0 0 0" endRot="0 -160 0" />
        </animation>
    </animations>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electricOut03" length="0.01" diameter="0.008" straighteningFactor="0.2" adapterNode="electric_connector">
			<objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
		</hose>
		<hose inputAttacherJointIndices="1" type="isobus" node="isobusOut03" length="0.01" diameter="0.008" straighteningFactor="0.2" adapterNode="isobus_connector">
			<objectChange node="isobus_detached" visibilityActive="false" visibilityInactive="true"/>
		</hose>
		
		<localHose>
            <hose type="electric" node="electricOut01" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="electricIn01" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="electricOut02" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="electricIn02" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="isobusOut01" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="isobus" node="isobusIn01" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="isobusOut02" length="0.01" diameter="0.008" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1.5" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="isobus" node="isobusIn02" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="lightOut01" length="0.01" diameter="0.005" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="lightIn01" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="lightOut02" length="0.01" diameter="0.005" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="lightIn02" node="lightIn02" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="lightOut03" length="0.01" diameter="0.005" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="lightIn03" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="lightOut04" length="0.01" diameter="0.005" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="lightIn02" node="lightIn04" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="lightOut05" length="0.01" diameter="0.005" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="electric" node="lightIn05" straighteningFactor="0.1"/>
        </localHose>
		<localHose>
            <hose type="electric" node="lightOut06" length="0.01" diameter="0.005" isTwoPointHose="true" minCenterPointAngle="30" straighteningFactor="1" isWorldSpaceHose="false" adapterType="NONE"/>
            <target attacherJointIndices="1" type="lightIn06" node="lightIn06" straighteningFactor="0.1"/>
        </localHose>
    </connectionHoses>
	
	<trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideFront" dischargeNodeIndex="1">
                        <animation name="tipAnimationFront" speedScale="1.0" startTipTime="0.15"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="WATER MILK GOATMILK" capacity="800" >
						<exactFillRootNode node="exactFillRootNode" />
						<dashboard displayType="TEXT" valueType="fillLevel" node="numbersFillLevel" textColor="FENDT_BLACK1" textSize="0.007" textMask="000" font="DIGIT" textAlignment="RIGHT"/>
						<dashboard displayType="ANIMATION" valueType="fillLevel" animName="fillLevel" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="200" fillUnitIndex="1" maxDistance="1" canStartDischargeAutomatically="false">
            <info width="0.4" length="0.4" />
            <dischargeSound template="SLURRY_03"/>
			<trigger node="dischargeTrigger" />

            <effects>
                <effectNode effectNode="pipeEffect" materialType="washer" materialTypeId="1"  delay="0" fadeTime="0.5" /> 
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<waterTrailer fillUnitIndex="1" fillLitersPerSecond="450" fillNode="liquidTank_main_component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>
	
	<fillTriggerVehicle triggerNode="fluidTrigger" fillUnitIndex="1" litersPerSecond="250"/>
	
	<ai>
        <agentAttachment width="1" height="1.0" length="0.6" lengthOffset="-0.15"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-0.7" maxZ="0.7" yOffset="0.2" />
    </foliageBending>

    <baseMaterial>
        <material name="liquidTank_mat" baseNode="liquidTank">
            <shaderParameter name="colorMat0" value="FENDT_OLDGREEN1"/>
            <shaderParameter name="colorMat1" value="FENDT_RED1"/>
        </material>
    </baseMaterial>

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

    <i3dMappings>
        <i3dMapping id="liquidTank_main_component1" node="0>" />
        <i3dMapping id="attacherJoint" 				node="0>0|0|0" />
		<i3dMapping id="attacherBolt" 				node="0>0|0|1" />
		<i3dMapping id="electricOut01" 				node="0>0|0|2|0" />
		<i3dMapping id="electricIn01" 				node="0>0|0|2|1" />
		<i3dMapping id="electricOut02" 				node="0>0|0|2|2" />
		<i3dMapping id="electricIn02" 				node="0>0|0|2|3" />
		<i3dMapping id="isobusOut01" 				node="0>0|0|2|4" />
		<i3dMapping id="isobusIn01" 				node="0>0|0|2|5" />
		<i3dMapping id="isobusOut02" 				node="0>0|0|2|6" />
		<i3dMapping id="isobusIn02" 				node="0>0|0|2|7" />
		<i3dMapping id="lightOut01" 				node="0>0|0|2|8" />
		<i3dMapping id="lightIn01" 					node="0>0|0|2|9" />
		<i3dMapping id="lightOut02" 				node="0>0|0|2|10" />
		<i3dMapping id="lightIn02" 					node="0>0|0|2|11" />
		<i3dMapping id="lightOut03" 				node="0>0|0|2|12" />
		<i3dMapping id="lightIn03" 					node="0>0|0|2|13" />
		<i3dMapping id="lightOut04" 				node="0>0|0|2|14" />
		<i3dMapping id="lightIn04" 					node="0>0|0|2|15" />
		<i3dMapping id="lightOut05" 				node="0>0|0|2|16" />
		<i3dMapping id="lightIn05" 					node="0>0|0|2|17" />
		<i3dMapping id="lightOut06" 				node="0>0|0|2|18" />
		<i3dMapping id="lightIn06" 					node="0>0|0|2|19" />
		<i3dMapping id="electricOut03" 				node="0>0|0|3|0" />
		<i3dMapping id="electric_detached"  		node="0>0|0|3|0|0" />
		<i3dMapping id="electric_connector" 		node="0>0|0|3|0|0|0" />
		<i3dMapping id="isobusOut03" 				node="0>0|0|3|1" />
		<i3dMapping id="isobus_detached" 			node="0>0|0|3|1|0" />
		<i3dMapping id="isobus_connector" 			node="0>0|0|3|1|0|0" />
		<i3dMapping id="exactFillRootNode" 			node="0>0|1|0" />
        <i3dMapping id="dischargeTrigger" 			node="0>0|1|1" />
		<i3dMapping id="fluidTrigger" 				node="0>0|1|2" />
		<i3dMapping id="fillLevelIndicator" 		node="0>0|1|3|0" />
		<i3dMapping id="drainValveSwitch" 			node="0>0|1|3|1|0" />
		<i3dMapping id="dischargeNode" 				node="0>0|1|4" />
		<i3dMapping id="numbersFillLevel" 			node="0>0|1|5|2" />
		<i3dMapping id="pipeEffect" 				node="0>0|1|6|0" />
		<i3dMapping id="defaultLight_static" 		node="0>0|2|0" />
		<i3dMapping id="liquidTank" 				node="0>0|3|0" />
        <i3dMapping id="supportFeets" 				node="0>1" />
        <i3dMapping id="supportColli" 				node="0>1|0" />
		<i3dMapping id="supportColliLeftBack" 		node="0>1|1" />
		<i3dMapping id="supportColliLeftFront" 		node="0>1|2" />
		<i3dMapping id="supportColliRightBack" 		node="0>1|3" />
		<i3dMapping id="supportColliRightFront" 	node="0>1|4" />
    </i3dMappings>
</vehicle>