<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer" 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>CIG8</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store_cig8.png</image>
        <price>10500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>RINOAGRO</brand>
        <category>trailers</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>cig8.i3d</filename>
        <size width="3.5" length="6.5" lengthOffset="0.3"/>
        <sounds volumeFactor="1.8"/>
        <components maxMass="8500">
            <component centerOfMass="0 0.7 1.75"  solverIterationCount="30" mass="3500"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHT3/385_65R22_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="2.2" repr="wheelFrontLeft"   forcePointRatio="0.5" initialCompression="42" suspTravel="0.05" spring="40" damper="50" yOffset="-0.015"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHT3/385_65R22_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics tipOcclusionAreaGroupId="1" restLoad="2.2" repr="wheelFrontRight"  forcePointRatio="0.5" initialCompression="42" suspTravel="0.05" spring="40" damper="50" yOffset="-0.015"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
        <rimColor material="18">SHARED_WHITE1</rimColor>
		
        <hubs>
            <color0 useBaseColor="true"/>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelFrontLeft"  filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="true"  scale="0.25 0.34 0.34" offset="0.01"/>
            <hub linkNode="wheelFrontRight" filename="$data/shared/wheels/hubs/hub_n8_6.xml" isLeft="false" scale="0.25 0.34 0.34" offset="0.01"/>
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="0.61" />
        </inputAttacherJoints>
        <brakeForce force="0.5" />
        <support animationName="moveSupport" />
    </attachable>
	
    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" length="2.5" diameter="0.02" >
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn02" length="2.5" diameter="0.02" >
            <objectChange node="hydraulicIn02_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn03" length="2.5" diameter="0.02" >
            <objectChange node="hydraulicIn03_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn03_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="0"   linkNode="v4_plate" 						filename="shared/plates.i3d"/>
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="backLight_left"			filename="$data/shared/assets/lights/lizard/rearLight09_left.xml" />
        <sharedLight linkNode="backLight_right"			filename="$data/shared/assets/lights/lizard/rearLight09_right.xml" />
        <sharedLight linkNode="sideMarker01_left" 		filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="sideMarker01_right" 		filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="sideMarker02_left" 		filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>
        <sharedLight linkNode="sideMarker02_right" 		filename="$data/shared/assets/lights/lizard/sideMarker16Orange.xml"/>

        <realLights>
            <high>
                <light node="backLightsHigh1" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="backLightsHigh1" />
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.2 0.4 0.2 0.15"/>
    </licensePlates>

    <foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts startMoveDirection="0" >
                    <foldingPart animationName="folding" speedScale="1.0" />
                </foldingParts>
              </foldingConfiguration>
        </foldingConfigurations>
    </foldable>

    <animations>
        <animation name="moveSupport">
            <part node="support_exp"	startTime="0.0" endTime="0.5"	startTrans="0 0.09 0"		endTrans="0 0 0" />
            <part node="support"   		startTime="0.6" endTime="1.1" 	startRot="0 0 90"    		endRot="0 0 0" />
            <part node="supportCol"		startTime="0.0" endTime="0.5"	startTrans="0 0.5 1.88"	endTrans="0 0.075 1.88" />

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="0.49" volumeScale="1.2" pitchScale="0.5" linkNode="attacherJoint"/>
            <sound template="clackVar2Small" startTime="0.7" 	direction="1" 	volumeScale="1.2"  	pitchScale="1.5" linkNode="attacherJoint"/>
            <sound template="latchSmall"     startTime="1.0"  	direction="1"  	volumeScale="0.7" 	pitchScale="1.2" linkNode="attacherJoint"/>
            <sound template="clackVar2Small" startTime="1.0" 	direction="-1" 	volumeScale="1.2"  	pitchScale="1.5" linkNode="attacherJoint"/>
            <sound template="latchSmall"     startTime="0.7"  	direction="-1"  volumeScale="0.7" 	pitchScale="1.2" linkNode="attacherJoint"/>
        </animation>
        <animation name="folding" >
            <part node="chassis"		 	startTime="0.0" endTime="10" startRot="0 0 0" endRot="-40 0 0"/>
            <part node="bodyRot"		 	startTime="0.0" endTime="10" startRot="0 0 0" endRot="-30 0 0"/>
            <part node="drawbar"		 	startTime="0.0" endTime="10" startRot="0 0 0" endRot="-40 0 0"/>
			
            <sound template="metalLowVar3"  startTime="0.01" direction="1"  volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalOpen"     startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="0.9"/>
            <sound template="metalLowVar2"  startTime="9.99" direction="1"  volumeScale="2.5" pitchScale="0.7"/>
            <sound template="metalClose"    startTime="9.99" direction="1"  volumeScale="1.6" pitchScale="0.6"/>
            <sound template="clackVar6"     startTime="9.99" direction="1"  volumeScale="0.6" pitchScale="0.5"/>
            <sound template="cylinderPunch" startTime="9.99" direction="1"  volumeScale="1.0" pitchScale="0.9"/>
            <sound template="thudVar2"      startTime="9.9"  direction="-1" volumeScale="1.5" pitchScale="0.7"/>
            <sound template="clackVar6"     startTime="9.99" direction="-1" volumeScale="0.8" pitchScale="0.3"/>
            <sound template="clackVar1"     startTime="0.1"   direction="-1" volumeScale="0.8" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="0.01"  direction="-1" volumeScale="2.0" pitchScale="0.6"/>
            <sound template="metalLowVar3"  startTime="0.1"   direction="-1" volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="0.1"   direction="-1" volumeScale="2.0" pitchScale="0.9"/>
        </animation>
        <animation name="tipAnimationBack">
            <part node="body"               startTime="1.0" endTime="16"	startRot="0 0 0" endRot="-60 0 0" />

            <sound template="metalLowVar3"  startTime="1.01"  direction="1"  volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalOpen"     startTime="1.01"  direction="1"  volumeScale="1.4" pitchScale="0.9"/>
            <sound template="metalLowVar2"  startTime="15.99" direction="1"  volumeScale="2.5" pitchScale="0.7"/>
            <sound template="metalClose"    startTime="15.99" direction="1"  volumeScale="1.6" pitchScale="0.6"/>
            <sound template="clackVar6"     startTime="15.99" direction="1"  volumeScale="0.6" pitchScale="0.5"/>
            <sound template="cylinderPunch" startTime="15.99" direction="1"  volumeScale="1.0" pitchScale="0.9"/>
            <sound template="thudVar2"      startTime="15.9"  direction="-1" volumeScale="1.5" pitchScale="0.7"/>
            <sound template="clackVar6"     startTime="15.99" direction="-1" volumeScale="0.8" pitchScale="0.3"/>
            <sound template="clackVar1"     startTime="1.1"   direction="-1" volumeScale="0.8" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="1.01"  direction="-1" volumeScale="2.0" pitchScale="0.6"/>
            <sound template="metalLowVar3"  startTime="1.1"   direction="-1" volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="1.1"   direction="-1" volumeScale="2.0" pitchScale="0.9"/>
        </animation>
		<animation name="tipAnimationBackDoor">
            <part node="backDoor" direction="1"		startTime="4.75" endTime="5"	startRot="0 0 0" 	endRot="25 0 0" />
            <part node="backDoor" direction="1"		startTime="5.0" endTime="16" 	startRot="25 0 0" 	endRot="60 0 0" />
            <part node="backDoor" direction="-1"	startTime="4.0" endTime="16" 	startRot="0 0 0" 	endRot="60 0 0" />	
            <part node="effectNodesBack"			startTime="0.0" endTime="16" 	startRot="0 0 0" 	endRot="60 0 0" />

            <sound template="metalClose" 	startTime="0.01"  direction="-1"	volumeScale="2.0" pitchScale="1.1"/>
            <sound template="clackVar1"     startTime="1.6"   direction="-1" 	volumeScale="0.8" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="1.51"  direction="-1" 	volumeScale="2.0" pitchScale="0.6"/>
            <sound template="metalLowVar3"  startTime="1.6"   direction="-1" 	volumeScale="2.0" pitchScale="0.7"/>
            <sound template="metalLowVar2"  startTime="1.6"   direction="-1" 	volumeScale="2.0" pitchScale="0.9"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="chassis" playSound="true" wheelIndices="1 2">
                <dependentPart node="chassisHydraulic"/>
                <dependentPart node="bodyHydraulic"/>
            </movingTool>
            <movingTool node="body" playSound="true">
                <dependentPart node="chassisHydraulic"/>
                <dependentPart node="bodyHydraulic"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="chassisHydraulic" referencePoint="hydraulicChassisRef" referenceFrame="chassisHydraulicPunch01" lockAxis="1">
                <translatingPart node="chassisHydraulicPunch01" />
                <translatingPart node="chassisHydraulicPunch02" />
                <translatingPart node="chassisHydraulicPunch03" />
                <translatingPart node="chassisHydraulicPunch04" />
            </movingPart>
            <movingPart node="bodyHydraulic" referencePoint="hydraulicBodyRef" referenceFrame="bodyHydraulicPunch01" lockAxis="1">
                <translatingPart node="bodyHydraulicPunch01" />
                <translatingPart node="bodyHydraulicPunch02" />
                <translatingPart node="bodyHydraulicPunch03" />
                <translatingPart node="bodyHydraulicPunch04" />
            </movingPart>
        </movingParts>

         <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.5" volumeScale="2.2" linkNode="bodyHydraulic" actionNames="TRANSLATING_POS" nodes="bodyHydraulic"/>
            <actionSound template="defaultHydraulicSound" pitchScale="0.5" volumeScale="0.7" linkNode="bodyHydraulic" actionNames="TRANSLATING_NEG" nodes="bodyHydraulic"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="bodyHydraulic" actionNames="TRANSLATING_END_NEG" nodes="bodyHydraulicPunch01"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="chassisHydraulic" actionNames="TRANSLATING_END_NEG" nodes="chassisHydraulicPunch01"/>
        </sounds>
    </cylindered>
    
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="SHOVEL" capacity="8000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTargetNode" startZ="0.80" endZ="-2.60" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.12" maxAllowedHeapAngle="15" fillUnitIndex="1" retessellateTop="false"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="unloadInfo" width="1.0" length="1.5" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

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

    <dischargeable>
		<dischargeNode node="dischargeNodeBack" emptySpeed="400" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
			<info width="2.5" length="0.5" />
			<effects>
				<effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectGrainBack" materialType="unloading" fadeTime="0.5" extraDistanceNode="dischargeNodeBack" extraDistance="0"/>
                    <effectNode effectNode="effectParticleBack" effectClass="ParticleEffect" materialType="unloadingParticle" emitCountScale="4"/>
				</effectNode>
				<effectNode effectNode="effectSmokeBack" materialType="unloadingSmoke" fadeTime="1.0" />
			</effects>
		</dischargeNode>
    </dischargeable>

    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="7"/>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.7" height="2.5" length="3.8" lengthOffset="0.35" hasCollision="false"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.23" maxX="1.23" minZ="-1.85" maxZ="1.85" yOffset="1.5" />
        <bendingNode minX="-0.7" maxX="0.7" minZ="-0.45" maxZ="1.85" yOffset="0.75" />
    </foliageBending>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

    <i3dMappings>        
		<i3dMapping id="cig8_main_component1"          node="0>" />
        <i3dMapping id="cig8_vis"                      node="0>0" />
        <i3dMapping id="drawbar"                       node="0>0|0|0|0" />
        <i3dMapping id="attacherJoint"                 node="0>0|0|0|0|0" />
        <i3dMapping id="support"                       node="0>0|0|1|0" />
        <i3dMapping id="support_exp"                   node="0>0|0|1|0|0" />
        <i3dMapping id="supportCol"                    node="0>0|0|1|1" />
        <i3dMapping id="hydraulicIn01"                 node="0>0|0|2|0" />
        <i3dMapping id="hydraulicIn01_detached"        node="0>0|0|2|1" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|0|2|1|0" />
        <i3dMapping id="hydraulicIn02"                 node="0>0|0|2|2" />
        <i3dMapping id="hydraulicIn02_detached"        node="0>0|0|2|3" />
        <i3dMapping id="hydraulicIn02_detachedAdapter" node="0>0|0|2|3|0" />
        <i3dMapping id="hydraulicIn03"                 node="0>0|0|2|4" />
        <i3dMapping id="hydraulicIn03_detached"        node="0>0|0|2|5" />
        <i3dMapping id="hydraulicIn03_detachedAdapter" node="0>0|0|2|5|0" />
        <i3dMapping id="movingParts"                   node="0>0|1" />
        <i3dMapping id="bodyRot"                       node="0>0|1|0" />
        <i3dMapping id="body"                          node="0>0|1|0|0" />
        <i3dMapping id="body_vis"                      node="0>0|1|0|0|0" />
        <i3dMapping id="backDoor"                      node="0>0|1|0|0|0|0" />
        <i3dMapping id="hydraulicBodyRef"              node="0>0|1|0|0|0|1" />
        <i3dMapping id="exactFillRootNode"             node="0>0|1|0|0|1|0" />
        <i3dMapping id="fillAutoAimTargetNode"         node="0>0|1|0|0|1|1" />
        <i3dMapping id="fillVolume"                    node="0>0|1|0|0|1|2" />
        <i3dMapping id="heightNode01"                  node="0>0|1|0|0|1|3" />
        <i3dMapping id="heightNode02"                  node="0>0|1|0|0|1|4" />
        <i3dMapping id="unloadInfo"                    node="0>0|1|0|0|1|5" />
        <i3dMapping id="effectNodesBack"               node="0>0|1|0|0|2|0|0" />
        <i3dMapping id="effectGrainBack"               node="0>0|1|0|0|2|0|0|0" />
        <i3dMapping id="effectSmokeBack"               node="0>0|1|0|0|2|0|0|1" />
        <i3dMapping id="effectParticleBack"            node="0>0|1|0|0|2|0|1|0" />
        <i3dMapping id="backLight_left"                node="0>0|1|0|0|3|0|0" />
        <i3dMapping id="backLight_right"               node="0>0|1|0|0|3|0|1" />
        <i3dMapping id="sideMarker01_left"             node="0>0|1|0|0|3|0|2" />
        <i3dMapping id="sideMarker02_left"             node="0>0|1|0|0|3|0|3" />
        <i3dMapping id="sideMarker01_right"            node="0>0|1|0|0|3|0|4" />
        <i3dMapping id="sideMarker02_right"            node="0>0|1|0|0|3|0|5" />
        <i3dMapping id="backLightsHigh1"               node="0>0|1|0|0|3|1|0|0" />
        <i3dMapping id="turnLightLeftBack"             node="0>0|1|0|0|3|1|1|0" />
        <i3dMapping id="turnLightRightBack"            node="0>0|1|0|0|3|1|1|1" />
        <i3dMapping id="licensePlateBack"              node="0>0|1|0|0|5" />
        <i3dMapping id="chassis"                       node="0>0|1|1|0" />
        <i3dMapping id="wheelFrontLeft"                node="0>0|1|1|0|0|0" />
        <i3dMapping id="wheelFrontRight"               node="0>0|1|1|0|0|1" />
        <i3dMapping id="chassisHydraulic"              node="0>0|1|1|0|1|0" />
        <i3dMapping id="chassisHydraulicPunch01"       node="0>0|1|1|0|1|0|0" />
        <i3dMapping id="chassisHydraulicPunch02"       node="0>0|1|1|0|1|0|0|0" />
        <i3dMapping id="chassisHydraulicPunch03"       node="0>0|1|1|0|1|0|0|0|0" />
        <i3dMapping id="chassisHydraulicPunch04"       node="0>0|1|1|0|1|0|0|0|0|0" />
        <i3dMapping id="bodyHydraulic"                 node="0>0|1|2|0" />
        <i3dMapping id="bodyHydraulicPunch01"          node="0>0|1|2|0|0" />
        <i3dMapping id="bodyHydraulicPunch02"          node="0>0|1|2|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch03"          node="0>0|1|2|0|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch04"          node="0>0|1|2|0|0|0|0|0" />
        <i3dMapping id="bodyHydraulicPunch05"          node="0>0|1|2|0|0|0|0|0|0" />
        <i3dMapping id="dischargeNodeBack"             node="0>0|2|0" />
        <i3dMapping id="hydraulicChassisRef"           node="0>0|3|0" />
        <i3dMapping id="v4_plate"                      node="0>0|3|1" />
    </i3dMappings>
</vehicle>
