<?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>CacambaFaccini</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>CacambaFaccini.png</image>
        <price>8000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand customIcon="BRAND.dds" imageOffset="0.060">FM</brand>
        <category>FARIASveiculos</category>
        <shopTranslationOffset>0 0.021 0</shopTranslationOffset>
        <shopRotationOffset>-0.635 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1654016</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>269568</indexBufferMemoryUsage>
        <textureMemoryUsage>1703936</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>CacambaFaccini.i3d</filename>
        <size width="3.8" length="8" lengthOffset="0"/>
        <components maxMass="22000">
            <component centerOfMass="0 0.6 -1" solverIterationCount="10" mass="1300"/>
            <component solverIterationCount="10" mass="300"/>
			<component solverIterationCount="10" mass="50"/>
			<component solverIterationCount="10" mass="50"/>
			<joint component1="1" component2="2" node="tampaJoint" rotLimit="40 0 0" />
			<joint component1="1" component2="3" node="jointLT" rotLimit="25 0 0" />
			<joint component1="1" component2="4" node="jointLM" rotLimit="25 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.7"/>
        <mapHotspot type="TRAILER" />
    </base>

    

    <attachable>
        
		<inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="cacamba" upperRotationOffset="0" allowsJointRotLimitMovement="false" forceSelectionOnAttach="false"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce force="1" maxForce="2.5" maxForceMass="20500"/>
    </attachable>

    <cover> 
        <coverConfigurations>
            <coverConfiguration name="$l10n_configuration_valueYes" price="1500" openCoverWhileTipping="true">
                <cover openAnimation="toggleCover" />
                
            </coverConfiguration>

           
        </coverConfigurations>
     </cover>

    

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_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="hydraulicOut02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|2" linkNode="airIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|3" linkNode="airOut01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="electricIn_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <lights>
        <sharedLight linkNode="redTriangle_02_01"  filename="$data/shared/assets/reflectors/lizard/redTriangle_01.xml" />
        <sharedLight linkNode="redTriangle_02_02"  filename="$data/shared/assets/reflectors/lizard/redTriangle_01.xml" />
        <sharedLight linkNode="sideMarker03_left"  filename="$data/shared/assets/lights/lizard/sideMarker03_left.xml" />
        <sharedLight linkNode="sideMarker03_right" filename="$data/shared/assets/lights/lizard/sideMarker03_right.xml" />
        <sharedLight linkNode="sideMarker08Orange_01" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker08Orange_02" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker08Orange_03" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker08Orange_04" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker08Orange_05" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="sideMarker08Orange_06" filename="$data/shared/assets/lights/lizard/sideMarker05Orange.xml" />
        <sharedLight linkNode="rearLight13_left"   filename="$data/shared/assets/lights/lizard/rearLight13_left.xml" />
        <sharedLight linkNode="rearLight13_right"  filename="$data/shared/assets/lights/lizard/rearLight13_right.xml" />
        <sharedLight linkNode="plateNumberLight01"  filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />
        <sharedLight linkNode="plateNumberLight02"  filename="$data/shared/assets/lights/lizard/plateNumberLight02.xml" />

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

    <animations>
        <animation name="tipAnimationBack">
            <part node="body"     startTime="0.0" endTime="14" startRot="0 0 0" endRot="-40 0 0"/>
            <part node="H1"     startTime="0.0" endTime="14" startRot="0 0 0" endRot="-60 0 0"/>
			<part node="H2"     startTime="0.0" endTime="14" startRot="-76.723 0 0" endRot="-12.484 0 0"/>
			<part node="Pistao"   startTime="0" endTime="14" startTrans="0 0 0" endTrans="0 0 0.57"/>
			<part node="trava"   startTime="2" endTime="3" startTrans="0 0 0" endTrans="0 -0.042 0"/>
			<part componentJointIndex="1" startTime="0" endTime="14" startRotLimit="0 0 0" endRotLimit="40 0 0" />
			<part node="tampaJoint" startTime="0" endTime="14" startRot="0 0 0" endRot="40 0 0"/>
			
			<part node="jointLT" startTime="0" endTime="14" 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="13.99" direction="1"  volumeScale="2.5" pitchScale="0.7"/>
            <sound template="metalClose"    startTime="13.99" direction="1"  volumeScale="1.6" pitchScale="0.6"/>
            <sound template="clackVar6"     startTime="13.99" direction="1"  volumeScale="0.6" pitchScale="0.5"/>
            <sound template="cylinderPunch" startTime="13.99" direction="1"  volumeScale="1.0" pitchScale="0.9"/>
            <sound template="thudVar2"      startTime="13.9"  direction="-1" volumeScale="1.5" pitchScale="0.7"/>
            <sound template="clackVar6"     startTime="13.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="tipAnimationBackDoor">
            <part node="backDoor"       startTime="0.0" endTime="6.0" startRot="0 0 0" endRot="85 0 0"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="5.99" volumeScale="1.0" pitchScale="0.7"/>
            <sound template="metalLowVar2"          startTime="0.3"  direction="-1" volumeScale="2.5" pitchScale="1.2"/>
            <sound template="metalLowVar3"          startTime="0.2"  direction="-1" volumeScale="2.5" pitchScale="0.6"/>
            <sound template="hingeMedium"           startTime="0.3"  direction="1"  volumeScale="2"   pitchScale="0.3"/>
            <sound template="metalLowVar2"          startTime="0.1"  direction="1"  volumeScale="0.4" pitchScale="0.9"/>
            <sound template="metalLowVar2"          startTime="5.99" direction="1"  volumeScale="2.0" pitchScale="0.9"/>
            <sound template="clackVar6"             startTime="5.99" direction="1"  volumeScale="1.2" pitchScale="0.6"/>
        </animation>
        <animation name="moveSupport">
          	<part node="Suporte" startTime="0" endTime="0.1" startScale="0 0 0" endScale="1 1 1"/>
			<part node="Suporte" startTime="0.1" endTime="0.2" startTrans="0 1.823 0" endTrans="0 0 0"/>
        </animation>
		 <animation name="toggleCover"> 
            <part node="Lona" startTime="0.00" endTime="0.05" visibility="true" />
            <part node=""   startTime="0.00" endTime="0.05" visibility="false" />
            <part node="Lona" startTime="0.05" endTime="0.10" visibility="false" />
            <part node=""   startTime="0.05" endTime="0.10" visibility="true" />

            <sound template="fabricCover2" startTime="0.01" direction="1"  volumeScale="1.4" pitchScale="1.5"/>
            <sound template="fabricCover1" startTime="0.05" direction="-1" volumeScale="1.4" pitchScale="1.8"/>
         </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="body">
                <dependentPart node="bodyHydraulic" />
				<componentJoint index="1" />
				<componentJoint index="2" />
				<componentJoint index="3" />
            </movingTool>
            <movingTool node="backDoor" >
                <dependentPart node="backDoorHydraulic" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="backDoorHydraulic" referencePoint="backDoorHydraulicRef" referenceFrame="backDoorHydraulicRef">
                <translatingPart node="backDoorHydraulicPunch" />
            </movingPart>

            <movingPart node="bodyHydraulic" referencePoint="bodyHydraulicRef" referenceFrame="bodyHydraulicRef" divideTranslatingDistance="false">
                <translatingPart node="bodyHydraulicPunch01" maxZTrans="0.636"/>
                <translatingPart node="bodyHydraulicPunch02" maxZTrans="1"/>
                <translatingPart node="bodyHydraulicPunch03" maxZTrans="1"/>
                <translatingPart node="bodyHydraulicPunch04" maxZTrans="1.3"/>
            </movingPart>
			
			<movingPart node="PistaoCopo" referencePoint="refpistao" referenceFrame="refpistao" isActiveDirty="true" maxUpdateDistance="20"/>
			
        </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="bodyHydraulicPunch02"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="bodyHydraulic" actionNames="TRANSLATING_END_NEG" nodes="bodyHydraulicPunch03"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0">
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="BULK" capacity="25000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTargetNode" startZ="1.1" endZ="-2.7" invert="false" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="FillVolume" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

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

        <heightNodes>
            <heightNode fillVolumeIndex="1">
                <refNode node="heightNode01" />
                <refNode node="heightNode02" />
                <node node="effectGrainBack" baseScale="0.1 1 1" scaleMax="0.8 0 0" scaleAxis="0.55 0 0" transAxis="0 0 0" orientateToWorldY="true"/>
				<node node="" transAxis="0 0.45 0" />
				
				
                <node node="effectParticleBack" baseScale="0.4 0.2 1" scaleAxis="0.6 1 0" />
            </heightNode>
        </heightNodes>
    </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="864" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="2.0" length="0.5" zOffset="-1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectParticleBack" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="effectGrainBack" materialType="unloading" fadeTime="1.5" extraDistanceNode="dischargeNodeBack" extraDistance="0.35"/>
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2 3 4" width="2.7" height="3" length="6" lengthOffset="1"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.38" maxX="1.38" minZ="-3.6" maxZ="1.8" yOffset="0.6" />
        <bendingNode minX="-0.2" maxX="0.2" minZ="1.8" maxZ="3.8" yOffset="0.6" />
    </foliageBending>

	<baseColorConfigurations useDefaultColors="true" defaultColorIndex="5" >
        <baseColorConfiguration materialTemplateName="INTERNATIONAL_RED1"/>
        <material materialSlotName="cacamba"/>        
    </baseColorConfigurations>

    <designConfigurations title="Engate"> 
        <designConfiguration name="1"> 		   
             <objectChange node="attacherJoint" translationActive="0 1.29770994 -1.11134005"/>						    
        </designConfiguration>
        <designConfiguration name="2"> 		   
             <objectChange node="attacherJoint" translationActive="0 1.29770994 -1.293"/>						    
        </designConfiguration>
     </designConfigurations>

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

    <i3dMappings>
  <i3dMapping id="hp20_main_component1" node="0>" />
  <i3dMapping id="hp20_vis" node="0>0" />
  <i3dMapping id="attachable" node="0>0|0" />
  <i3dMapping id="attacherJoint" node="0>0|0|0" />
  <i3dMapping id="movingParts" node="0>0|1" />
  <i3dMapping id="body" node="0>0|1|0" />
  <i3dMapping id="backDoor" node="0>0|1|0|0" />
  <i3dMapping id="backDoorHydraulicRef" node="0>0|1|0|0|0" />
  <i3dMapping id="backDoorHydraulic" node="0>0|1|0|1" />
  <i3dMapping id="backDoorHydraulicPunch" node="0>0|1|0|1|0" />
  <i3dMapping id="backDoorHydraulicJoint" node="0>0|1|0|1|1" />
  <i3dMapping id="bodyHydraulicRef" node="0>0|1|0|2" />
  <i3dMapping id="lights" node="0>0|1|0|3" />
  <i3dMapping id="fillUnit" node="0>0|1|0|4" />
  <i3dMapping id="exactFillRootNode" node="0>0|1|0|4|0" />
  <i3dMapping id="fillAutoAimTargetNode" node="0>0|1|0|4|1" />
  <i3dMapping id="FillVolume" node="0>0|1|0|4|2" />
  <i3dMapping id="fillVolumeUnloadInfo" node="0>0|1|0|4|3" />
  <i3dMapping id="heightNode01" node="0>0|1|0|4|4" />
  <i3dMapping id="heightNode02" node="0>0|1|0|4|5" />
  <i3dMapping id="visuals_0" node="0>0|1|0|5" />
  <i3dMapping id="tampaJoint" node="0>0|1|0|5|0" />
  <i3dMapping id="GroupName" node="0>0|1|0|5|1" />
  <i3dMapping id="trava" node="0>0|1|0|5|1|0" />
  <i3dMapping id="Plane.003" node="0>0|1|0|5|2" />
  <i3dMapping id="Plane.001" node="0>0|1|0|5|3" />
  <i3dMapping id="Lameiros" node="0>0|1|0|5|4" />
  <i3dMapping id="m" node="0>0|1|0|5|4|0" />
  <i3dMapping id="jointLT" node="0>0|1|0|5|5" />
  <i3dMapping id="jointLM" node="0>0|1|0|5|6" />
  <i3dMapping id="escadas" node="0>0|1|0|5|7" />
  <i3dMapping id="step" node="0>0|1|0|5|8" />
  <i3dMapping id="effects" node="0>0|1|0|6" />
  <i3dMapping id="particlesBack" node="0>0|1|0|6|0" />
  <i3dMapping id="effectNodesBack" node="0>0|1|0|6|0|0" />
  <i3dMapping id="effectGrainBack" node="0>0|1|0|6|0|0|0" />
  <i3dMapping id="effectSmokeBack" node="0>0|1|0|6|0|0|1" />
  <i3dMapping id="particleNodesBack" node="0>0|1|0|6|0|1" />
  <i3dMapping id="effectParticleBack" node="0>0|1|0|6|0|1|0" />
  <i3dMapping id="collisions" node="0>0|1|0|7" />
  <i3dMapping id="Cube.001" node="0>0|1|0|7|0" />
  <i3dMapping id="Cube.003" node="0>0|1|0|7|1" />
  <i3dMapping id="Cube.004" node="0>0|1|0|7|2" />
  <i3dMapping id="Cube.005" node="0>0|1|0|7|3" />
  <i3dMapping id="Cube.006" node="0>0|1|0|7|4" />
  <i3dMapping id="Cube.007" node="0>0|1|0|7|5" />
  <i3dMapping id="Cube.008" node="0>0|1|0|7|6" />
  <i3dMapping id="Cube.009" node="0>0|1|0|7|7" />
  <i3dMapping id="Cube.010" node="0>0|1|0|7|8" />
  <i3dMapping id="bodyJoint" node="0>0|1|0|8" />
  <i3dMapping id="bodyHydraulic" node="0>0|1|1" />
  <i3dMapping id="bodyHydraulicPunch01" node="0>0|1|1|0" />
  <i3dMapping id="bodyHydraulicPunch02" node="0>0|1|1|0|0" />
  <i3dMapping id="bodyHydraulicPunch03" node="0>0|1|1|0|0|0" />
  <i3dMapping id="bodyHydraulicPunch04" node="0>0|1|1|0|0|0|0" />
  <i3dMapping id="bodyHydraulicJoint" node="0>0|1|1|1" />
  <i3dMapping id="dischargeNodeBack" node="0>0|2" />
  <i3dMapping id="references" node="0>0|3" />
  <i3dMapping id="licensePlateNodeBack" node="0>0|3|0" />
  <i3dMapping id="wheelChock01" node="0>0|3|1" />
  <i3dMapping id="wheelChock02" node="0>0|3|2" />
  <i3dMapping id="visuals_1" node="0>0|4" />
  <i3dMapping id="tanque hidrulico" node="0>0|4|0" />
  <i3dMapping id="Chassi" node="0>0|4|1" />
  <i3dMapping id="transform_0" node="0>0|4|1|0" />
  <i3dMapping id="H1" node="0>0|4|1|0|0" />
  <i3dMapping id="H2" node="0>0|4|1|0|0|0" />
  <i3dMapping id="refpistao" node="0>0|4|1|0|0|1" />
  <i3dMapping id="transform_1" node="0>0|4|1|0|1" />
  <i3dMapping id="PistaoCopo" node="0>0|4|1|0|1|0" />
  <i3dMapping id="Pistao" node="0>0|4|1|0|1|0|0" />
  <i3dMapping id="aste" node="0>0|4|1|0|1|0|0|0" />
  <i3dMapping id="Bone" node="0>0|4|1|0|1|0|1" />
  <i3dMapping id="mangueiras" node="0>0|4|2" />
  <i3dMapping id="Bone.001" node="0>0|4|2|0" />
  <i3dMapping id="rootJoint" node="0>0|5" />
  <i3dMapping id="Suporte" node="0>0|6" />
  <i3dMapping id="palanque" node="0>0|6|0" />
  <i3dMapping id="Cube.022" node="0>0|6|0|0" />
  <i3dMapping id="Cube.021" node="0>0|6|0|1" />
  <i3dMapping id="palanque.001" node="0>0|6|1" />
  <i3dMapping id="Cube.019" node="0>0|6|1|0" />
  <i3dMapping id="Cube.020" node="0>0|6|1|1" />
  <i3dMapping id="TampaComp" node="1>" />
  <i3dMapping id="Tampa" node="1>0" />
  <i3dMapping id="Plane.005" node="1>0|0" />
  <i3dMapping id="Plane.004" node="1>0|1" />
  <i3dMapping id="lameiroTComp" node="2>" />
  <i3dMapping id="2" node="2>0" />
  <i3dMapping id="lameiroMComp" node="3>" />
  <i3dMapping id="1" node="3>0" />
</i3dMappings>
</vehicle>
