<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	<storeData>
        <name>
            <de>Transport Modul S</de>
            <en>tipper</en>
        </name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store_TransportModule.dds</image>
        <price>9760</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>REFORM</brand>
        <category>trailers</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>1.145 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2214332</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>330480</indexBufferMemoryUsage>
        <textureMemoryUsage>11796760</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base> 
		<typeDesc>$l10n_typeDesc_tipper</typeDesc>	
        <filename>TransportModule.i3d</filename>
        <size width="3.5" length="10.5"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="701" />
        </components>
        <schemaOverlay attacherJointPosition="0 0"/>

    </base>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="TransporterJoint" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" upperRotationOffset="0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
        </inputAttacherJoints>
		<support animationName="moveSupport" />
        <brakeForce force="0.6" />
    </attachable>
	
	<licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="ELONGATED" placementArea="- - - -"/>
    </licensePlates>

	
	<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="attach01" linkNode="0>" />
        </sounds>
    </attacherJoints>
    
	<lights>
        <sharedLight linkNode="rear4ChamberLight_01_left"  filename="$data/shared/assets/lights/lizard/rearLight13_right.xml" />
        <sharedLight linkNode="rear4ChamberLight_01_right" filename="$data/shared/assets/lights/lizard/rearLight13_left.xml" />
        <realLights>
            <high>
                <light node="backLightsHigh" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh" />
            </high>
        </realLights>
    </lights>
    
	<animations>
        <animation name="moveSupport">
			<part node="supportArms" startTime="0" endTime="0.01" visibility="false"/>
            <part node="supportArms" startTime="0.01" endTime="0.02" visibility="true"/>
			<part node="supportArmParts" startTime="0" endTime="0.01" visibility="false"/>
            <part node="supportArmParts" startTime="0.01" endTime="0.02" visibility="true"/>
            <part node="leftSupport" startTime="0" endTime="0.2" startTrans="0.91 1.3 0.93" endTrans="1.5 0 0" />
			<part node="rightSupport" startTime="0" endTime="0.2" startTrans="-0.91 1.3 0.93" endTrans="-1.5 0 0" />
        </animation>

        <animation name="tipAnimationBack">
            <part node="frame"       startTime="0.0" endTime="12" startRot="0 0 0" endRot="-30 0 0" />
            <part node="backDoor"     startTime="0.0" endTime="1.5"  startRot="0 0 0" endRot="-90 0 0" />
            <part node="backDoor"     startTime="1.5"   endTime="12" startRot="-90 0 0" endRot="-125 0 0" />
            <part node="effectNodesBack" startTime="0.3" endTime="12" startRot="0 0 0" endRot="30 0 0" />
        </animation>
    </animations>
	
	<cylindered>
        <movingTools>
            <movingTool node="frame" playSound="true" >
                <dependentPart node="mainHydraulic" />
            </movingTool>
			<movingTool node="leftDoor">
                <controls axis="TRANSPORT_MODULE_LEFT_DOOR" invertAxis="true"/>
                <rotation rotSpeed="35" rotAcceleration="160" rotMax="-1" rotMin="-160" rotationAxis="3"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="mainHydraulic" referencePoint="hydraulicBodyRef" referenceFrame="hydraulicBodyRefFrame" lockAxis="3" >
                <dependentPart node="punch" />
            </movingPart>
            <movingPart node="punch" referencePoint="hydraulicBodyRef" referenceFrame="hydraulicBodyRefFrame" lockAxis="1" >
                <translatingPart node="punch1" />
                <translatingPart node="punch2" />
                <translatingPart node="punch3" />
                <translatingPart node="punch4" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="hydraulicOpen01" linkNode="0>"/>
        </sounds>
    </cylindered>
    
	<fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="14000" >
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTarget" startZ="1.4" endZ="-2.7" invert="false" fillUnitIndex="1" startPercentage="75"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.2" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo fillVolumeIndex="1" >
                <node node="fillVolumeHeightNodesBack1" width="1.3" length="0.5" minHeight="0.8" priority="2" />
                <node node="fillVolumeHeightNodesBack2" width="1.3" length="0.5" minHeight="0.8" priority="2" />
                <node node="fillVolumeHeightNodesFront1" width="1.3" length="2.6" />
                <node node="fillVolumeHeightNodesFront2" width="1.3" length="2.6" />
            </unloadInfo>
        </unloadInfos>

        <heightNodes>
            <heightNode fillVolumeIndex="1" >
                <refNode node="fillVolumeHeightNodesBack1" />
                <refNode node="fillVolumeHeightNodesBack2" />
                <node node="effectNodesBack" baseScale="1 1 1" transAxis="0 0 0" transMax="0 0 0" />
            </heightNode>
        </heightNodes>
    </fillVolume>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" startTipTime="0.15"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <dischargeable>
        <dischargeNode node="dischargeNodeBack" emptySpeed="1000" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="2.5" length="0.5" zOffset="0.5"/>
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectParticleBack" materialType="unloading" effectClass="ParticleEffect" />
                    <effectNode effectNode="effectGrainBack" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistanceNode="dischargeNodeBack" extraDistance="0.2"/>
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
		<agentAttachment width="2.45" height="2.8" length="4.2" lengthOffset="-0.3"/>
    </ai>

	<tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="main_component1" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="-0.25" defaultOffsetSide="0.1" defaultHeight="2.75" interactionRadius="1.5" totalInteractionRadius="6.5" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="beltStart1" endNode="beltEnd1" offsetLeft="0.95"/>
                    <tensionBelt startNode="beltStart2" endNode="beltEnd2"/>
                    <tensionBelt startNode="beltStart3" endNode="beltEnd3" offsetRight="0.8"/>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-3.1" maxZ="2.2" yOffset="0.6" />
    </foliageBending>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="main_component1" node="0>" />
		<i3dMapping id="supportCollisions" node="0>0|1|0" />
		<i3dMapping id="leftSupport" node="0>0|1|0|0" />
		<i3dMapping id="rightSupport" node="0>0|1|0|1" />
		<i3dMapping id="supportArmParts" node="0>0|1|0|2" />
		<i3dMapping id="supportArms" node="0>0|1|1" />
		<i3dMapping id="attacherJoint" node="0>0|0" />
		<i3dMapping id="lights" node="0>1|0" />
		<i3dMapping id="turnLights" node="0>1|0|0" />
		<i3dMapping id="turnLeft" node="0>1|0|0|0" />
		<i3dMapping id="turnLightLeftBack" node="0>1|0|0|0|0" />
		<i3dMapping id="turnRight" node="0>1|0|0|1" />
		<i3dMapping id="turnLightRightBack" node="0>1|0|0|1|0" />
		<i3dMapping id="backLightsHigh" node="0>1|0|1" />
		<i3dMapping id="backLightsHigh1" node="0>1|0|1|0" />
		<i3dMapping id="sharedLights" node="0>1|0|2" />		
		<i3dMapping id="rear4ChamberLight_01_right" node="0>1|0|2|0" />
		<i3dMapping id="rear4ChamberLight_01_left" node="0>1|0|2|1" />	
		<i3dMapping id="frame" node="0>1|1|0" />
		<i3dMapping id="rightDoor" node="0>1|1|0|0|0" />
		<i3dMapping id="leftDoor" node="0>1|1|0|0|1" />
		<i3dMapping id="backDoor" node="0>1|1|0|0|2" />
		<i3dMapping id="fillVolume" node="0>1|1|0|0|3|0" />
        <i3dMapping id="fillVolumeHeightNodesBack1" node="0>1|1|0|0|3|1" />
        <i3dMapping id="fillVolumeHeightNodesBack2" node="0>1|1|0|0|3|2" />
		<i3dMapping id="fillVolumeHeightNodesFront1" node="0>1|1|0|0|3|3" />
        <i3dMapping id="fillVolumeHeightNodesFront2" node="0>1|1|0|0|3|4" />
        <i3dMapping id="exactFillRootNode" node="0>1|1|0|0|3|5" />
        <i3dMapping id="fillAutoAimTarget" node="0>1|1|0|0|3|6" />
		<i3dMapping id="effectNodesBack" node="0>1|1|0|0|4|0|0" />
		<i3dMapping id="effectGrainBack" node="0>1|1|0|0|4|0|0|0" />
		<i3dMapping id="effectSmokeBack" node="0>1|1|0|0|4|0|0|1" />
		<i3dMapping id="effectParticleBack" node="0>1|1|0|0|4|0|1|0" />
		<i3dMapping id="dischargeNodeBack" node="0>1|1|0|0|5|0" />
		<i3dMapping id="hydraulicBodyRef" node="0>1|1|0|0|6" />
		<i3dMapping id="tensionBelts" node="0>1|1|0|0|8" />
		<i3dMapping id="beltStart1" node="0>1|1|0|0|8|0" />
		<i3dMapping id="beltEnd1" node="0>1|1|0|0|8|0|0" />
		<i3dMapping id="beltStart2" node="0>1|1|0|0|8|1" />
		<i3dMapping id="beltEnd2" node="0>1|1|0|0|8|1|0" />
		<i3dMapping id="beltStart3" node="0>1|1|0|0|8|2" />
		<i3dMapping id="beltEnd3" node="0>1|1|0|0|8|2|0" />
		<i3dMapping id="mainHydraulic" node="0>1|1|2" />
		<i3dMapping id="punch" node="0>1|1|2|0" />
		<i3dMapping id="punch1" node="0>1|1|2|0|0" />
		<i3dMapping id="punch2" node="0>1|1|2|0|0|0" />
		<i3dMapping id="punch3" node="0>1|1|2|0|0|0|0" />
		<i3dMapping id="punch4" node="0>1|1|2|0|0|0|0|0" />				
		<i3dMapping id="hydraulicBodyRefFrame" node="0>1|1|3" />
		<i3dMapping id="beltActivationTrigger" node="0>1|1|5" />
		<i3dMapping id="trailerAttacherJoint" node="0>2" />	
		<i3dMapping id="licensePlateBack" node="0>1|1|1|1"/>
    </i3dMappings>
	
</vehicle>
