<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="dynamicMountAttacherTrailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	<storeData>
        <name>TR-8000</name>
        <functions>
            <function>$l10n_function_baleStacker</function>
        </functions>
        <image>store_TR8000.dds</image>
        <price>23000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>baleLoaders</category>
        <shopTranslationOffset>0 0.3 0</shopTranslationOffset>
        <vertexBufferMemoryUsage>1537792</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>154624</indexBufferMemoryUsage>
        <textureMemoryUsage>983040</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
   <base>
        <typeDesc>$l10n_typeDesc_baleLoader</typeDesc>
        <filename>TR8000.i3d</filename>
        <size width="3" length="12"/>
        <components>
		    <component centerOfMass="0 0 -1" solverIterationCount="10" mass="1000"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TRAILER"/>
    </base>

    <wheels>
		<wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T421/420_55R17.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.6" repr="0>0|1|1|0" forcePointRatio="0.25" initialCompression="40" suspTravel="0.1" spring="14" damper="30" yOffset="0.015" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/trelleborg/T421/420_55R17.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.6" repr="0>0|1|1|1" forcePointRatio="0.25" initialCompression="40" suspTravel="0.1" spring="14" damper="30" yOffset="0.015" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		<rimColor material="0">0.095 0.407 0.005</rimColor>
		<hubs>
            <color0 useBaseColor="true"/>
            <color1 useBaseColor="true"/>
			<hub linkNode="0>0|1|1|0"  filename="$data/shared/wheels/hubs/hub_n6_1.xml" scale="0.15 0.2 0.2" isLeft="true"  />
            <hub linkNode="0>0|1|1|1" filename="$data/shared/wheels/hubs/hub_n6_1.xml" scale="0.15 0.2 0.2" isLeft="false" />
        </hubs>
    </wheels>

    <lights>
        <sharedLight linkNode="0>0|4|2" filename="$data/shared/assets/lights/lizard/rearLight04_left.xml"/>
        <sharedLight linkNode="0>0|4|3" filename="$data/shared/assets/lights/lizard/rearLight04_right.xml"/>
        <sharedLight linkNode="0>0|0|0|0|2" filename="$data/shared/assets/reflectors/lizard/bigTriangle.xml"/>

        <realLights>
            <low>
                <light node="0>0|4|4|0" lightTypes="0"/>
                <brakeLight node="0>0|4|4|0"/>
                <turnLightLeft node="0>0|4|5|0"/>
                <turnLightRight node="0>0|4|5|1"/>
            </low>
            <high>
                <light node="0>0|4|4|0" lightTypes="0"/>
                <brakeLight node="0>0|4|4|0"/>
                <turnLightLeft node="0>0|4|5|0"/>
                <turnLightRight node="0>0|4|5|1"/>
            </high>
        </realLights>

		<beaconLights>
           <beaconLight node="0>0|4|0" speed="0.035" filename="$data/shared/assets/beaconLights/lizard/beaconLight09.xml" />
           <beaconLight node="0>0|4|1" speed="0.035" filename="$data/shared/assets/beaconLights/lizard/beaconLight09.xml" />
        </beaconLights>
    </lights>

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|1|0|0" jointType="trailerLow" attacherHeight="0.663"/>
            <inputAttacherJoint node="0>0|1|0|0" jointType="trailer" attacherHeight="0.663"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="0.6"/>
    </attachable>

   <connectionHoses>
        <hose inputAttacherJointIndices="1 2" type="hydraulicIn"  node="0>0|1|0|5|0"  length="1.3" diameter="0.02">
            <objectChange node="0>0|1|0|6|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="hydraulicOut"  node="0>0|1|0|5|1"  length="1.3" diameter="0.02">
            <objectChange node="0>0|1|0|6|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="hydraulicIn"  node="0>0|1|0|5|2"  length="1.3" diameter="0.02">
            <objectChange node="0>0|1|0|6|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="hydraulicOut"  node="0>0|1|0|5|3"  length="1.3" diameter="0.02">
            <objectChange node="0>0|1|0|6|3" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1 2" type="electric" node="0>0|1|0|5|4" length="0.5" diameter="0.005">
            <objectChange node="0>0|1|0|6|4" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="1" >
                    <foldingPart animationName="lowerAnimation" speedScale="0.7" />
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="0>0|5" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="5"  activationTrigger="0>0|5|0">
                    <tensionBelt startNode="0>0|5|1" endNode="0>0|5|1|0" />
                    <tensionBelt startNode="0>0|5|2" endNode="0>0|5|2|0" />
                    <tensionBelt startNode="0>0|5|3" endNode="0>0|5|3|0" />
                    <tensionBelt startNode="0>0|5|4" endNode="0>0|5|4|0" />
                    <tensionBelt startNode="0>0|5|5" endNode="0>0|5|5|0" />
                    <tensionBelt startNode="0>0|5|6" endNode="0>0|5|6|0" />
                    <tensionBelt startNode="0>0|5|7" endNode="0>0|5|7|0" />
                    <tensionBelt startNode="0>0|5|8" endNode="0>0|5|8|0" />
                    <tensionBelt startNode="0>0|5|9" endNode="0>0|5|9|0" />
                    <tensionBelt startNode="0>0|5|10" endNode="0>0|5|10|0" />
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
    <animations>
        <animation name="moveSupport">
            <part node="0>0|1|0|3" startTime="0" endTime="1" endRot="0 0 0" startRot="90 0 0"/>
            <part node="0>0|1|0|3|0" startTime="0" endTime="1" endTrans="0.052 -0.53 0" starTrans="0.052 -0.235 0"/>
        </animation>
        <animation name="armsWidth">
            <part node="0>0|1|2|1|2" startTime="0" endTime="1" endTrans="0 1.28 0" starTrans="0 0.8 0"/>
        </animation>
        <animation name="uploadArm">
            <part node="0>0|1|2" startTime="0.5" endTime="2" startRot="0 0 -10" endRot="0 0 90"/>
            <part node="0>0|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="-6 0 0"/>
            <part node="0>0|1|1" startTime="0" endTime="1" startRot="-48.814 0 0" endRot="-30 0 0"/>

            <sound template="hydraulicLayerTone" startTime="0.49" endTime="1.99" volumeScale="2"   pitchScale="0.8" />
            <sound template="hydraulicLayerTone" startTime="0.01" endTime="0.99" volumeScale="2"   pitchScale="0.8" />
            <sound template="clackVar4"          startTime="0.99"                volumeScale="1.2" pitchScale="1.6" />
            <sound template="foldStopSm02"       startTime="0.01"                volumeScale="1.5" pitchScale="0.9" />
            <sound template="clackVar4"          startTime="0.01"                volumeScale="1.2" pitchScale="1.6" />
            <sound template="foldStopSm02"       startTime="0.99"                volumeScale="1.5" pitchScale="0.9" />
        </animation>
        <animation name="lowerAnimation">
            <part node="0>0|1|2" startTime="0" endTime="1" startRot="0 0 -10" endRot="0 0 -10"/>
            <part node="0>0|1|0" startTime="0" endTime="1" endRot="0 0 0" 		startRot="-13 0 0"/>
            <part node="0>0|1|1" startTime="0" endTime="1" endRot="-48.814 0 0" 	startRot="5 0 0"/>

            <sound template="hydraulicLayerTone" startTime="0.01" endTime="0.99" volumeScale="2"   pitchScale="0.8" />
            <sound template="clackVar4"          startTime="0.99"                volumeScale="1.2" pitchScale="1.6" />
            <sound template="foldStopSm02"       startTime="0.01"                volumeScale="1.5" pitchScale="0.9" />
            <sound template="clackVar4"          startTime="0.01"                volumeScale="1.2" pitchScale="1.6" />
            <sound template="foldStopSm02"       startTime="0.99"                volumeScale="1.5" pitchScale="0.9" />
        </animation>
        <animation name="transportLock">
            <part node="0>0|0|0|0" startTime="0" endTime="0.5" startRot="0 0 0" 		endRot="0 0 0"/>
            <part node="0>0|0|0|0" startTime="0" endTime="0.2" starTrans="1.06 1.77 -2.96" 	endTrans="1.06 1.9 -2.96"/>
            <part node="0>0|0|0|0" startTime="0.2" endTime="0.35" starTrans="1.06 1.9 -2.96" 	endTrans="1.15 1.9 -2.96"/>
            <part node="0>0|0|0|0" startTime="0.35" endTime="0.8" starTrans="1.15 1.9 -2.96" 	endTrans="1.15 0.49 -6.56"/>
            <part node="0>0|0|0|0" startTime="0.8" endTime="1.1" startRot="0 0 0" 		endRot="0 90 0"/>
            <part node="0>0|0|0|0" startTime="0.8" endTime="1.1" starTrans="1.15 0.49 -6.5" 	endTrans="0 0.49 -6.03"/>
            <part node="0>0|0|0|0" startTime="1.1" endTime="1.3" starTrans="0 0.49 -6.03" 	endTrans="0 0.31 -6.03"/>
             <sound template="foldStopSm02"          startTime="0.01"                volumeScale="1.2" pitchScale="1.6" />
            <sound template="foldStopSm02"          startTime="1.299"                volumeScale="1.2" pitchScale="1.6" />
       </animation>
    </animations>  

   <cylindered>
		<movingTools>
			<movingTool node="0>0|1|0" playSound="true" foldMinLimit="0.01" foldMaxLimit="1">
                <controls axis="AXIS_CRANE_ARM" invertAxis="false" mouseSpeedFactor="1.2" iconName="DRAWBAR_ROTATE_X"/>
                <inputAttacherJoint value="true"/>
				<animation animSpeed="0.5" animAcceleration="1" animName="uploadArm" />
            </movingTool>
			<movingTool node="0>0|0|0|0" playSound="true">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.6" iconName="CRANE_EC_TRANSLATE_Z" />
				<animation animSpeed="1" animAcceleration="5" animName="transportLock" />
            </movingTool>
			<movingTool node="0>0|1|2|1|2" playSound="true">
                <controls axis="AXIS_CRANE_TOOL2" invertAxis="true" mouseSpeedFactor="0.6" iconName="WORKING_WIDTH_TRANSLATE_X" />
				<animation animSpeed="1" animAcceleration="5" animName="armsWidth" />
            </movingTool>

			<movingTool node="0>0|1|1" wheelIndices="1 2"/>
        </movingTools>
    	<movingParts>
	        <movingPart node="0>0|2|0|0" referencePoint="0>0|1|0|1" referenceFrame="0>0|2|0" isActiveDirty="true" maxUpdateDistance="300" >
                <translatingPart node="0>0|2|0|0|0" />
            </movingPart>
	        <movingPart node="0>0|2|1|0" referencePoint="0>0|1|1|2" referenceFrame="0>0|2|1" isActiveDirty="true" maxUpdateDistance="300" >
                <translatingPart node="0>0|2|1|0|0" />
            </movingPart>
	        <movingPart node="0>0|2|2|0" referencePoint="0>0|1|1|3" referenceFrame="0>0|2|2" isActiveDirty="true" maxUpdateDistance="300" >
                <translatingPart node="0>0|2|2|0|0" />
            </movingPart>
	        <movingPart node="0>0|2|3|0" referencePoint="0>0|1|2|0" referenceFrame="0>0|2|3" isActiveDirty="true" maxUpdateDistance="300" >
                <translatingPart node="0>0|2|3|0|0" />
            </movingPart>
        </movingParts>
		<sounds>
            <hydraulic template="MOVING_PART_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <baseMaterial>
        <material name="baseMat_TR8000" baseNode="0>0">
            <shaderParameter name="colorMat0" value="0 0.133 0.033 0"/>
        </material>
    </baseMaterial>

    <foliageBending>
	    <bendingNode minX="-0.593" maxX="0.593" minZ="3.675" maxZ="3.79" yOffset="0.234" />
	    <bendingNode minX="0.48" maxX="0.593" minZ="-6.119" maxZ="3.79" yOffset="0.234" />
	    <bendingNode minX="-0.593" maxX="-0.48" minZ="-6.119" maxZ="3.79" yOffset="0.234" />
	    <bendingNode minX="-1.964" maxX="0.063" minZ="-0.755" maxZ="-0.639" yOffset="-0.349" node="0>0|1|2|3|0"/>
    </foliageBending>

    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="7"/>
        <agentAttachment jointNode="0>0|1|0|0" rotCenterWheelIndices="1 2" width="2.5" height="3.0" length="5.5" lengthOffset="0.7"/>
    </ai>

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

</vehicle>
