<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="autoload">
    <annotation>Copyright (C) Hunter4987, All Rights Reserved.</annotation>

    <storeData>
        <name>TDK Quaderballen</name>
        <functions>
            <function>$l10n_function_baleTrailer</function>
        </functions>
        <image>store_MuenzTDKBallen.png</image>
        <price>12000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MUENZ</brand>
        <category>baling</category>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>MuenzTDKBallen.i3d</filename>
        <size width="3" length="7" lengthOffset="0.25" />
        <components>
            <component centerOfMass="0 0.6 -0.65" solverIterationCount="10" mass="3200" />
        </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" brand="LIZARD">
                <wheels>
                    <wheel filename="$data/shared/wheels/lizard/implement/385_65R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelFrontLeft"  forcePointRatio="0.5" initialCompression="10" suspTravel="0.25" spring="25" damper="30" />
                        <wheelChock parkingNode="wheelChock1Parking" />
                        <wheelChock parkingNode="wheelChock2Parking" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/lizard/implement/385_65R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.8" repr="wheelFrontRight" forcePointRatio="0.5" initialCompression="10" suspTravel="0.25" spring="25" damper="30" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/lizard/implement/385_65R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="wheelBackLeft"   forcePointRatio="0.5" initialCompression="10" suspTravel="0.25" spring="25" damper="30" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/lizard/implement/385_65R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.0" repr="wheelBackRight"  forcePointRatio="0.5" initialCompression="10" suspTravel="0.25" spring="25" damper="30" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="1300" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/T404/500_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelFrontLeft"  forcePointRatio="0.5" initialCompression="19" suspTravel="0.15" spring="28" damper="30" />
                        <wheelChock parkingNode="wheelChock1Parking" />
                        <wheelChock parkingNode="wheelChock2Parking" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/T404/500_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.8" repr="wheelFrontRight" forcePointRatio="0.5" initialCompression="19" suspTravel="0.15" spring="28" damper="30" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/T404/500_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.8" repr="wheelBackLeft"   forcePointRatio="0.5" initialCompression="17" suspTravel="0.15" spring="28" damper="30" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/T404/500_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.8" repr="wheelBackRight"  forcePointRatio="0.5" initialCompression="17" suspTravel="0.15" spring="28" damper="30" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="2200" brand="MICHELIN">
                <wheels>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBibHD/560_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.9" repr="wheelFrontLeft"  forcePointRatio="0.5" initialCompression="10" suspTravel="0.15" spring="42" damper="30" />
                        <wheelChock parkingNode="wheelChock1Parking" />
                        <wheelChock parkingNode="wheelChock2Parking" isInverted="true" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBibHD/560_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.9" repr="wheelFrontRight" forcePointRatio="0.5" initialCompression="10" suspTravel="0.15" spring="42" damper="30" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBibHD/560_45R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.9" repr="wheelBackLeft"   forcePointRatio="0.5" initialCompression="12" suspTravel="0.15" spring="42" damper="30" />
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBibHD/560_45R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="2" restLoad="0.9" repr="wheelBackRight"  forcePointRatio="0.5" initialCompression="12" suspTravel="0.15" spring="42" damper="30" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
            <color0 useBaseColor="true" />
            <color1>0.875 0.874 0.858</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.335 0.335 0.335" />
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.335 0.335 0.335" />
            <hub linkNode="wheelBackLeft"   filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.335 0.335 0.335" />
            <hub linkNode="wheelBackRight"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.335 0.335 0.335" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.92" />
        </inputAttacherJoints>
        <brakeForce>0.35</brakeForce>
        <support animationName="moveSupport" />
        <airConsumer usage="0.3" />
    </attachable>

    <attacherJoints>
        <attacherJoint node="trailerAttacherJoint" jointType="trailer" lowerRotLimit="10 65 75" upperRotRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false">
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>
	
	<connectionHoses>
        <target attacherJointIndices="1" type="electric" node="electricBack" socket="electric"/>
        <target attacherJointIndices="1" type="hydraulicIn" node="hydraulicInBack_01" socket="hydraulic01"/>
        <target attacherJointIndices="1" type="hydraulicOut" node="hydraulicOutBack_01" socket="hydraulic01"/>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.7" diameter="0.02" straighteningFactor="1.5">
           <objectChange node="hydraulicIn01_Detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="electric"  length="0.5" diameter="0.01" straighteningFactor="1.5">
           <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="airDoubleRed"  node="airred02"  length="0.9" diameter="0.02" straighteningFactor="1.5">
           <objectChange node="airred02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airyellow01" length="0.9" diameter="0.02" straighteningFactor="1.5">
            <objectChange node="airyellow01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <lights>
        <sharedLight linkNode="threeChamberLightLeft"       filename="$data/shared/assets/lights/lizard/rear3ChamberLight_01_left.xml" />
        <sharedLight linkNode="threeChamberLightRight"      filename="$data/shared/assets/lights/lizard/rear3ChamberLight_01_right.xml" />
        <sharedLight linkNode="sideMarkerLeft"              filename="$data/shared/assets/lights/lizard/sideMarker_01_left.xml" />
        <sharedLight linkNode="sideMarkerRight"             filename="$data/shared/assets/lights/lizard/sideMarker_01_right.xml" />
        <sharedLight linkNode="sideMarkerWhiteLeft"         filename="$data/shared/assets/lights/lizard/sideMarker_04White.xml" />
        <sharedLight linkNode="sideMarkerWhiteRight"        filename="$data/shared/assets/lights/lizard/sideMarker_04White.xml" />
        <sharedLight linkNode="sideMarkerOrangeLeftBack"    filename="$data/shared/assets/lights/lizard/sideMarker_04Orange.xml" />
        <sharedLight linkNode="sideMarkerOrangeLeftFront"   filename="$data/shared/assets/lights/lizard/sideMarker_04Orange.xml" />
        <sharedLight linkNode="sideMarkerOrangeRightBack"   filename="$data/shared/assets/lights/lizard/sideMarker_04Orange.xml" />
        <sharedLight linkNode="sideMarkerOrangeRightFront"  filename="$data/shared/assets/lights/lizard/sideMarker_04Orange.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh" />
            </high>
        </realLights>
    </lights>
	
    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-3.1" maxZ="2.2" yOffset="0.6" />
    </foliageBending>

    <baseMaterial>
        <material name="MuenzTDK_mat" baseNode="muenzTDK_vis">
            <shaderParameter name="colorMat0" value="KAERCHER_GREY4"/>
            <shaderParameter name="colorMat2" value="0.059 0.263 0.212"/>
        </material>
    </baseMaterial>
	
	<baseMaterialConfigurations price="200" useDefaultColors="false">
        <baseMaterialConfiguration name="Muenz/Fliegl" color="KAERCHER_GREY4"/>
		<baseMaterialConfiguration name="Strautmann/Mengele/Welger" color="STRAUTMANN_RED1"/>
        <material name="MuenzTDK_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>
	
	<designMaterialConfigurations price="180" useDefaultColors="false" defaultColorIndex="0">
		<designMaterialConfiguration name="Muenz" color="0.059 0.263 0.212" />
		<designMaterialConfiguration name="Strautmann" color="STRAUTMANN_GREEN1" />
		<designMaterialConfiguration name="Fliegl" color="0.4 0.6 0.02" />
		<designMaterialConfiguration name="Fliegl" color="FLIEGL_GREEN2" />
		<designMaterialConfiguration name="Mengele" color="BIGBUD_BLUE1" />
		<designMaterialConfiguration name="Welger" color="0.2 0.267 0.11" />
		<material name="MuenzTDK_mat" shaderParameter="colorMat2" />
    </designMaterialConfigurations>
	
    <animations>
        <animation name="moveSupport">
            <part node="supportArm"   startTime="0.00" endTime="0.20" startTrans="-0.002 0.660 2.358" endTrans="-0.002 0.5 2.358" />
            <part node="supportArmPart" startTime="0.00" endTime="0.20" startTrans="0 0.282 0" endTrans="0 0 0" />
            <part node="supportRot"   startTime="0.00" endTime="0.50" startRot="0 0 0" endRot="0 0 -720" />
        </animation>
		<animation name="baleGrabberTransportToWork">		
            <part node="unloadPosZ"			  startTime="0" duration="0.1" startTrans="0 0 0" endTrans="0 0 0"/>
			<part node="unloadPosY"			  startTime="0" duration="0.1" startTrans="0.6 0.629 2.8" endTrans="0.6 0.629 2.8"/>				
        </animation>
		<animation name="moveBalePlacesToEmpty">
			<part node="unloadPosZ"	startTime="0" endTime="0.2" startTrans="0 0 0" endTrans="0 0 0"/>
			<part node="unloadPosY"	startTime="0" endTime="0.2" startTrans="0.6 0.629 2.8" endTrans="0.6 0.629 2.8"/>			
        </animation>
    </animations>
    <cylindered>
        <movingTools>
			<movingTool node="baleGrabber" >
				<controls axis="AXIS_CRANE_ARM3" invertAxis="false" mouseSpeedFactor="0.7" iconName="GRABBER_OPEN_CLOSE"/>
				<animation animName="baleGrabberTransportToWork" animAcceleration="2" animSpeed="0.5" />				
            </movingTool>
			<movingTool node="unloadPosZ" playSound="false">
				<controls axis="AXIS_CRANE_ARM" invertAxis="true" mouseSpeedFactor="1" iconName="CRANE_EC_TRANSLATE_Z"/>
				<translation transSpeed="4" transAcceleration="15" transMax="15" transMin="-15" translationAxis="1"/>
			</movingTool>
			<movingTool node="unloadPosY" playSound="false">
				<controls axis="AXIS_CRANE_ARM2" invertAxis="true" mouseSpeedFactor="1" iconName="CRANE_EC_TRANSLATE_Y"/>
				<translation transSpeed="4" transAcceleration="15" transMax="15" transMin="-15" translationAxis="2"/>
			</movingTool>			
        </movingTools>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>
	
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_bale" capacity="12" fillTypes="squareBale"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

	<baleLoader>
		<texts lowerPlattform="action_baleloaderTransportPosition"/>
		<grabber grabNode="baleGrabber" triggerNode="baleTrigger" pickupRange="10" transportPositionAfterUnloading="true">
			<grabParticleSystem disableDuration="0" position="0 0.5 0" rotation="0 0 0" file="$data/particleSystems/shared/threshingStrawParticles.i3d"/>
		</grabber>
		<balePlaces startBalePlace="baleStartPlace">
			 <balePlace node="baleUnloading"/>
		</balePlaces>
		<baleTypes>
            <baleType minBaleWidth="1.2"  maxBaleWidth="1.2" minBaleHeight="0.8" maxBaleHeight="0.9" minBaleLength="2.2" maxBaleLength="2.4"/>
		</baleTypes>
	</baleLoader>	
	
    <tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="tensionBeltStart1" endNode="tensionBeltEnd1" offsetLeft="0.2" />
                    <tensionBelt startNode="tensionBeltStart2" endNode="tensionBeltEnd2" />
                    <tensionBelt startNode="tensionBeltStart3" endNode="tensionBeltEnd3" />
                    <tensionBelt startNode="tensionBeltStart4" endNode="tensionBeltEnd4" />
                    <tensionBelt startNode="tensionBeltStart5" endNode="tensionBeltEnd5" offsetRight="0.2" />
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<rimColorConfigurations price="450" useDefaultColors="false" defaultColorIndex="0">
         <rimColorConfiguration   name="White"         color="SHARED_WHITE1"      material="6" />
         <rimColorConfiguration   name="Lightgray"     color="MANITOU_LIGHTGRAY"  material="6" />		 
	   	 <rimColorConfiguration   name="Darkgray"      color="SHARED_GREY1"       material="6" />
		 <rimColorConfiguration   name="Steel"         color="0.875 0.874 0.858"  material="9" />
	</rimColorConfigurations>

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

    <i3dMappings>
        <i3dMapping id="muenzTDK_main_component1" node="0>" />
        <i3dMapping id="muenzTDK_vis" node="0>0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRight" node="0>0|0|1" />
        <i3dMapping id="wheelBackLeft" node="0>0|0|2" />
        <i3dMapping id="wheelBackRight" node="0>0|0|3" />
        <i3dMapping id="attacherJoint" node="0>0|1" />
        <i3dMapping id="trailerAttacherJoint" node="0>0|2" />
        <i3dMapping id="backLightsHigh" node="0>0|3|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|3|1" />
        <i3dMapping id="turnLightRightBack" node="0>0|3|2" />
        <i3dMapping id="threeChamberLightLeft" node="0>0|3|3|0" />
        <i3dMapping id="threeChamberLightRight" node="0>0|3|3|1" />
        <i3dMapping id="sideMarkerLeft" node="0>0|3|3|2" />
        <i3dMapping id="sideMarkerRight" node="0>0|3|3|3" />
        <i3dMapping id="sideMarkerWhiteLeft" node="0>0|3|3|4" />
        <i3dMapping id="sideMarkerWhiteRight" node="0>0|3|3|5" />
        <i3dMapping id="sideMarkerOrangeLeftBack" node="0>0|3|3|6" />
        <i3dMapping id="sideMarkerOrangeLeftFront" node="0>0|3|3|7" />
        <i3dMapping id="sideMarkerOrangeRightFront" node="0>0|3|3|8" />
        <i3dMapping id="sideMarkerOrangeRightBack" node="0>0|3|3|9" />
        <i3dMapping id="supportArm" node="0>0|5" />
        <i3dMapping id="supportArmPart" node="0>0|5|0" />
        <i3dMapping id="supportRot" node="0>0|6" />
        <i3dMapping id="wheelChocks" node="0>0|7" />
        <i3dMapping id="wheelChock1Parking" node="0>0|7|0" />
        <i3dMapping id="wheelChock2Parking" node="0>0|7|1" />
        <i3dMapping id="electricBack" node="0>0|8|0" />
        <i3dMapping id="hydraulicInBack_01" node="0>0|8|1" />
        <i3dMapping id="hydraulicOutBack_01" node="0>0|8|2" />
		<i3dMapping id="electric" node="0>0|8|3" />
        <i3dMapping id="electric_detached" node="0>0|8|7" />
        <i3dMapping id="hydraulicIn01" node="0>0|8|4"/>
        <i3dMapping id="hydraulicIn01_Detached" node="0>0|8|8"/>
		<i3dMapping id="airyellow01" node="0>0|8|6"/>
        <i3dMapping id="airyellow01_detached" node="0>0|8|9"/>
		<i3dMapping id="airred02" node="0>0|8|5"/>
        <i3dMapping id="airred02_detached" node="0>0|8|10"/>
		<i3dMapping id="baleGrabber" node="0>0|4|0|1|0" />
        <i3dMapping id="baleStartPlace" node="0>0|4|0|1|2" />
        <i3dMapping id="baleTrigger" node="0>0|4|0|1|3" />
        <i3dMapping id="baleUnloading" node="0>0|4|0|1|5|0|0" />
        <i3dMapping id="unloadPosZ" node="0>0|4|0|1|5" />
        <i3dMapping id="reset1" node="0>0|4|0|1|5" />		
        <i3dMapping id="unloadPosY" node="0>0|4|0|1|5|0" />
        <i3dMapping id="reset2" node="0>0|4|0|1|5|0" />	
		<i3dMapping id="tensionBelts" node="0>0|4|0|0|0" />
        <i3dMapping id="tensionBeltStart1" node="0>0|4|0|0|0|0" />
        <i3dMapping id="tensionBeltEnd1" node="0>0|4|0|0|0|0|0" />
        <i3dMapping id="tensionBeltStart2" node="0>0|4|0|0|0|1" />
        <i3dMapping id="tensionBeltEnd2" node="0>0|4|0|0|0|1|0" />
        <i3dMapping id="tensionBeltStart3" node="0>0|4|0|0|0|2" />
        <i3dMapping id="tensionBeltEnd3" node="0>0|4|0|0|0|2|0" />
        <i3dMapping id="tensionBeltStart4" node="0>0|4|0|0|0|3" />
        <i3dMapping id="tensionBeltEnd4" node="0>0|4|0|0|0|3|0" />
        <i3dMapping id="tensionBeltStart5" node="0>0|4|0|0|0|4" />
        <i3dMapping id="tensionBeltEnd5" node="0>0|4|0|0|0|4|0" />
        <i3dMapping id="beltActivationTrigger" node="0>0|4|0|0|0|5" />
    </i3dMappings>
</vehicle>
