<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="waterTrailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
	<storeData>
        <name>$l10n_shopItem_trailer</name>
        <functions>
            <function>$l10n_function_tank</function>
        </functions>
        <image>store.png</image>
        <price>500</price>
        <lifetime>1500</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>animals</category>
        <shopTranslationOffset>0 0. 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>378136</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>89010</indexBufferMemoryUsage>
        <textureMemoryUsage>7340168</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_trailer</typeDesc>
        <filename>trailer.i3d</filename>
        <size width="3" length="7.5" lengthOffset="1"/>
        <components>
            <component centerOfMass="0 0 0"  solverIterationCount="20" mass="700"/>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="500"/>
            <component                            solverIterationCount="10" mass="50"/>
            <joint component1="1" component2="2" node="componentJointFront" rotLimit="0 35 0" transLimit="0 0 0" />
            <joint component1="2" component2="3" node="componentJointDrawbar" rotLimit="30 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels>
				
					<wheel filename="wheels/10_80R12_2.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.1" repr="wheelBackLeft"  forcePointRatio="0.5" initialCompression="20" suspTravel="0.20" spring="22" damper="50" />
                    </wheel>
                    <wheel filename="wheels/10_80R12_2.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.1" repr="wheelBackRight" forcePointRatio="0.5" initialCompression="20" suspTravel="0.20" spring="22" damper="50" />
                    </wheel>
                    
					<wheel filename="wheels/10_80R12.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.1" repr="wheelFrontLeft"  forcePointRatio="0.5" initialCompression="20" suspTravel="0.20" spring="22" damper="50" />
                    </wheel>
                    <wheel filename="wheels/10_80R12.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.1" repr="wheelFrontRight" forcePointRatio="0.5" initialCompression="20" suspTravel="0.20" spring="22" damper="50" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
		<hubs>
            <color0>FORTSCHRITT_BLACK</color0>
            <color1>FORTSCHRITT_BLACK</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.152 0.152 0.152" />
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.152 0.152 0.152" />
			<hub linkNode="wheelBackLeft"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="true"  scale="0.152 0.152 0.152" />
            <hub linkNode="wheelBackRight" filename="$data/shared/wheels/hubs/hub_n6_1.xml" isLeft="false" scale="0.152 0.152 0.152" />
        </hubs>
		
        <rimColor>0.2 0.2 0.2 0</rimColor>
    </wheels>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" rootNode="component3" attacherHeight="0.874" />
        </inputAttacherJoints>
        <brakeForce>0.5</brakeForce>
    </attachable>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="hydraulicIN01" length="0.05" diameter="0.014" straighteningFactor="0.05">>
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
	<dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|1" linkNode="hydraulicIn01Adapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>
   
   <lights>
		<sounds>
            <switchLight template="SWITCH_01" linkNode="component1" />
        </sounds>
		
		<sharedLight linkNode="rear2ChamberLight_05" node="0" lightTypes="0 1 2" filename="$data/shared/assets/lights/lizard/rear2ChamberLight_05_left.xml"/>  
		<sharedLight linkNode="rear2ChamberLight_05_2" node="0" lightTypes="0 1 2" filename="$data/shared/assets/lights/lizard/rear2ChamberLight_05_right.xml"/>
	    <sharedLight linkNode="bigTriangle"              filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml" />   	
 
    
	    <states>
            <state lightTypes="0" />
        </states>

        <realLights>
            <high>
                <light node="backLightsHigh"       lightTypes="0"/>
                <brakeLight node="backLightsHigh" />
                <turnLightLeft node="turnLightLeftFront" />
                <turnLightRight node="turnLightRightFront" />
            </high>
        </realLights>

        <sounds>
            <switchLight template="SWITCH_01" linkNode="component1" />
            <turnLight template="SWITCH_TURNLIGHT" linkNode="component1" />
        </sounds>
	</lights>  

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypes="MILK WATER" capacity="2000">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="350"/>

    <dischargeable>
        <dischargeNode node="dischargeNode" emptySpeed="450" fillUnitIndex="1" canDischargeToGround="false">
            <info width="1.0" length="0.5" zOffset="0.4" />
            <trigger node="dischargeTrigger" />
        </dischargeNode>
    </dischargeable>

    <waterTrailer fillUnitIndex="1" fillLitersPerSecond="450" fillNode="component1">
        <sounds>
            <refill template="DEFAULT_REFUEL_SOUND" linkNode="0>" />
        </sounds>
    </waterTrailer>

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-2.3" maxZ="2.3" yOffset="0.6" />
    </foliageBending>
	
	<baseMaterial>
        <material name="lambert1" baseNode="Vis">
            <shaderParameter name="colorMat0" value="WILSONTRAILER_WHITE1"/>
			<shaderParameter name="colorMat1" value="MASSEYFERGUSON_RED"/>
			<shaderParameter name="colorMat2" value="1 0 0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations>
        <baseMaterialConfiguration name="STAINLESS STEEL" color="SHARED_WHITE2" material="8"/>
        <material name="lambert1" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>
	
	<i3dMappings>
		<i3dMapping id="Vis" node="0>0" />
        <i3dMapping id="component1" node="0>" />
        <i3dMapping id="component2" node="1>" />
        <i3dMapping id="component3" node="2>" />
		<i3dMapping id="componentJointDrawbar" node="2>1" />
	    <i3dMapping id="componentJointFront" node="1>2" />
        <i3dMapping id="wheelFrontLeft" node="1>0" />
        <i3dMapping id="wheelFrontRight" node="1>1" />
		<i3dMapping id="wheelBackLeft" node="0>1|0" />
        <i3dMapping id="wheelBackRight" node="0>1|1" />
	    <i3dMapping id="attacherJoint" node="2>0" />
	    <i3dMapping id="rear2ChamberLight_05" node="0>0|1" />
		<i3dMapping id="rear2ChamberLight_05_2" node="0>0|2" />
		<i3dMapping id="exactFillRootNode" node="0>0|0|0" />
        <i3dMapping id="fillTrigger" node="0>0|0|1" />
        <i3dMapping id="dischargeNode" node="0>0|0|2" />
        <i3dMapping id="dischargeTrigger" node="0>0|0|3" />
		<i3dMapping id="hydraulicIn01_detached" node="0>2" />
		<i3dMapping id="hydraulicIN01" node="0>3" />
		<i3dMapping id="hydraulicIn01Adapter" node="0>2|0" />
	    <i3dMapping id="bigTriangle" node="0>0|3" />
		<i3dMapping id="turnLightLeftFront" node="0>0|6|0" />
        <i3dMapping id="turnLightRightFront" node="0>0|6|1" />
	    <i3dMapping id="backLightsHigh" node="0>0|5|0" />
    </i3dMappings>

</vehicle>
