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

    <storeData>
        <name>LaCampagne_24T</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>Store.png</image>
        <price>43000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LACAMPAGNE</brand>
        <category>trailers</category>
        <shopTranslationOffset>0 -0.095 0</shopTranslationOffset>
        <shopRotationOffset>-1.35 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1182560</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>176154</indexBufferMemoryUsage>
        <textureMemoryUsage>24466904</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>campagne32.i3d</filename>
        <size width="3.5" length="12" lengthOffset="0.75"/>
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="7449"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>
	
	<wheels>
	     <wheelConfigurations>
            <wheelConfiguration name="choix 1" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="Wheel/roue1.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauched" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droited" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauche1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Droite1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
					 <wheel filename="Wheel/roue1.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gaucheda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droiteda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                       <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
            <wheelConfiguration name="choix 2" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="Wheel/roue2.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauched" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue2.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droited" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue2.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauche1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue2.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Droite1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
					 <wheel filename="Wheel/roue2.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gaucheda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                    <wheel filename="Wheel/roue2.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droiteda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
			<wheelConfiguration name="choix 3" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="Wheel/roue3.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauched" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue3.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droited" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue3.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauche1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue3.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Droite1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
					 <wheel filename="Wheel/roue3.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gaucheda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                    <wheel filename="Wheel/roue3.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droiteda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
			<wheelConfiguration name="choix 4" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="Wheel/roue4.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauched" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue4.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droited" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="0.5" rotMax="40" rotMin="-40"/>
                    </wheel>
                    <wheel filename="Wheel/roue4.xml" isLeft="false">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gauche1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue4.xml" isLeft="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Droite1" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
					 <wheel filename="Wheel/roue4.xml" isLeft="false" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.3" repr="Gaucheda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                    <wheel filename="Wheel/roue4.xml" isLeft="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.3" repr="Droiteda" forcePointRatio="0.3" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                        <steeringAxle scale="-0.7" rotMax="20" rotMin="-20"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
		</wheelConfigurations>
	</wheels>
	
	<lights>
       <realLights>
            <high>
                <light node="backLightsHigh" lightTypes="0" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <brakeLight node="brakeLightsHigh" />
				<reverseLight node="reverseLight"/>
            </high>
        </realLights>
		<defaultLights>
            <defaultLight shaderNode="feuxnuit" lightTypes="0"/>
			<defaultLight shaderNode="feuxnuit1" lightTypes="0"/>
			<defaultLight shaderNode="feuxnuit2" lightTypes="0"/>
			<defaultLight shaderNode="feuxnuit3" lightTypes="0"/>
			<defaultLight shaderNode="feuxnuit4" lightTypes="0"/>
			<defaultLight shaderNode="feuxnuit5" lightTypes="0"/>
			<defaultLight shaderNode="feuxnuit6" lightTypes="0"/>
        </defaultLights>

        <brakeLights>
             <brakeLight shaderNode="feuxfrein1" />
			<brakeLight shaderNode="feuxfrein" />
        </brakeLights>
		

        <turnLights>
            <turnLightLeft shaderNode="clignotantgauche" />
            <turnLightRight shaderNode="clignotantdroit" />
        </turnLights>
		
		
    </lights>

	 <attachable>
    <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="1.6" />
     </inputAttacherJoints>
	<brakeForce>1.6</brakeForce>
    <airConsumer usage="0.5" />
	<support animationName="moveSupport" />
	</attachable>
	
	  <powerTakeOffs>
        <input inputNode="pto" detachNode="ptoDetachNode" inputAttacherJointIndices="1" aboveAttacher="true" filename="$data/shared/assets/powerTakeOffs/walterscheidWWZ.xml"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="540" neededMinPtoPower="15" neededMaxPtoPower="35"/>
	
	<configurationSets>
        <configurationSet name="$l10n_configuration_capacityX" params="28000">
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="2" />
            <configuration name="trailer"      index="2" />
        </configurationSet>
    </configurationSets>
	
    <fillUnit>
        <fillUnitConfigurations>
			
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="28000">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="28000" >
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTargetNode" startZ="2.8" endZ="-4" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>				
            </fillUnitConfiguration>
			
        </fillUnitConfigurations>
    </fillUnit>
	
    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume1" maxDelta="0.20" 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="heightNode19" />
                <refNode node="heightNode20" />
                <node node="effectNodesBack" orientateToWorldZ="true" />
                <node node="grainNorm" baseScale="1 1 1" transAxis="0 0.9 0" scaleAxis="0 0 0" />
            </heightNode>
        </heightNodes>
    </fillVolume>
	
    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" />
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
    <dischargeable>
        <dischargeNode node="dischargeNodeBack" emptySpeed="1300" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="2.0" length="0.5" zOffset="-1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShapeBack" effectClass="ParticleEffect" extraDistance="1"/>
                    <effectNode effectNode="grainNorm" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistance="0.1" extraDistanceNode="dischargeNodeBack"/>
                </effectNode>
                <effectNode effectNode="smokeNorm" materialType="smoke" materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
    <cylindered>
		<movingTools>
			<!--Vérin-->
			<movingTool node="caisse" playSound="true">
				<dependentPart node="verin" />
			</movingTool>
			
			<movingTool node="anridelle" playSound="true">
                <controls axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseSpeedFactor="0.5" iconName="CRANE_ARM2_ROTATE_X" />
                <animation animSpeed="0.2" animAcceleration="5" animName="animationridelle1" />
                <dependentPart node="refannime" />
            </movingTool>

            <movingTool node="anridelle1" playSound="true">
                <controls axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseSpeedFactor="0.8" iconName="CRANE_ARM2_ROTATE_TOOL" />
                <animation animSpeed="0.2" animAcceleration="5" animName="animationridelle2" />
                <dependentPart node="refannime" />
            </movingTool>
		</movingTools>
	
		<movingParts>  
			<!--Vérin-->
			<movingPart node="verin" referencePoint="0>0|4" referenceFrame="0>0|4">           
				<translatingPart node="verin1" />
				<translatingPart node="verin2" />
				<translatingPart node="verin3" />	
				<translatingPart node="verin4" />					
			</movingPart>	
		</movingParts>
	
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>

    <animations>
        <animation name="moveSupport">
            <part node="bequilleN" startTime="0" duration="1.2" startRot="0 0 90" endRot="0 0 -90" />
            <part node="bequilleNfut" startTime="0" duration="1.2" startTrans="0 0 -0.06" endTrans="0 0 -0.37"  />
        </animation>
		<animation name="tipAnimationBack">
		    <part node="porte" startTime="0" endTime="15" startRot="0 0 0" endRot="-40 0 0" />
		    <part node="verrin" startTime="0" endTime="15" startRot="12.995 0 0" endRot="44.679 0 0" />
			<part node="verrintrans" startTime="0" endTime="15" startTrans="1.101 0.176 -0.684" endTrans="1.101 0.176 -0.99" />
			<part node="caisse" startTime="0" endTime="15" startRot="0 0 0" endRot="-35 0 0" />	
			<part node="effectNodesBack" startTime="0" endTime="15" startRot="0 0 0" endRot="-35 0 0" />
        </animation>
		<animation name="animationridelle1">
            <part node="anridelle" startTime="0" endTime="0.5" startTrans="1.28 2.537 0.364" endTrans="1.28 2.363 0.364" />
			<part node="fillVolume1"     startTime="0" endTime="0.5" startScale="1 1.122 1" endScale="1 1 1" />
        </animation>
		<animation name="animationridelle2">
            <part node="anridelle1" startTime="0" endTime="0.5" startTrans="-0.752 2.537 0.358" endTrans="-0.752 2.363 0.358" />
			<part node="fillVolume1"     startTime="0" endTime="0.5" startScale="1 1.122 1" endScale="1 1 1" />
        </animation>
    </animations>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric"  node="electricBack"  length="0.3" diameter="0.008" straighteningFactor="0.5">
            <objectChange node="electricBackAdapter" visibilityActive="false" visibilityInactive="true"/>
			<objectChange node="electricdetache" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electricBackAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.3" maxX="1.3" minZ="-4.5" maxZ="3.5" yOffset="0.6" />
		<bendingNode minX="-0.2" maxX="0.2" minZ="-0.2" maxZ="1.3" yOffset="-0.3" node="ptoDetachNode"/>
    </foliageBending>

    <i3dMappings>
        <i3dMapping id="caisse" node="0>0" />
        <i3dMapping id="porte" node="0>0|0|1" />
		<i3dMapping id="verrin" node="0>0|0|2|4" />
        <i3dMapping id="verrintrans" node="0>0|0|2|4|0" />
		
		<i3dMapping id="bequilleN" node="0>1|0" />
        <i3dMapping id="bequilleNfut" node="0>1|0|0|0" />
		
        <i3dMapping id="attacherJoint" node="0>1|5|0" />

        <i3dMapping id="verin" node="0>1|1" />
        <i3dMapping id="verin1" node="0>1|1|0" />
        <i3dMapping id="verin2" node="0>1|1|0|0" />
	    <i3dMapping id="verin3" node="0>1|1|0|0|0" />
	    <i3dMapping id="verin4" node="0>1|1|0|0|0|0" />
		
	    <i3dMapping id="exactFillRootNode" node="0>0|3|0" />
	    <i3dMapping id="fillAutoAimTargetNode" node="0>0|3|1" />
		
	    <i3dMapping id="fillVolume1" node="0>0|1|0" />
	    <i3dMapping id="fillVolumeUnloadInfo" node="0>0|1|2" />
        <i3dMapping id="heightNode19" node="0>0|1|1|0" />
        <i3dMapping id="heightNode20" node="0>0|1|1|1" />
		
        <i3dMapping id="effectNodesBack" node="0>0|2|0" />
        <i3dMapping id="emitterShapeBack" node="0>0|2|0|0" />
        <i3dMapping id="grainNorm" node="0>0|2|0|1" />
        <i3dMapping id="smokeNorm" node="0>0|2|0|2" />
		
        <i3dMapping id="dischargeNodeBack" node="0>0|5|0" />
		
		<i3dMapping id="ptoDetachNode" node="0>1|14" />
        <i3dMapping id="pto" node="0>1|13" />
		
		<i3dMapping id="Gauched" node="0>1|10" />
        <i3dMapping id="Gauche1" node="0>1|11" />
        <i3dMapping id="Droited" node="0>1|7" />
        <i3dMapping id="Droite1" node="0>1|8" />
		<i3dMapping id="Droiteda" node="0>1|9" />
		<i3dMapping id="Gaucheda" node="0>1|12" />
		
		<i3dMapping id="backLightsHigh" node="0>1|15|5|3" />
		<i3dMapping id="brakeLightsHigh" node="0>1|15|5|0" />
        <i3dMapping id="turnLightLeftBack" node="0>1|15|5|1" />
        <i3dMapping id="turnLightRightBack" node="0>1|15|5|2" />
		
		<i3dMapping id="feuxfrein1" node="0>1|15|3|2" />
        <i3dMapping id="feuxfrein" node="0>1|15|2|2" />
		
		<i3dMapping id="feuxnuit" node="0>1|15|2|1" />
		<i3dMapping id="feuxnuit1" node="0>1|15|3|1" />
		<i3dMapping id="feuxnuit2" node="0>1|15|4|0" />
		<i3dMapping id="feuxnuit3" node="0>1|15|6|0" />
		<i3dMapping id="feuxnuit4" node="0>1|15|7|0" />
		<i3dMapping id="feuxnuit5" node="0>1|15|8|0" />
		<i3dMapping id="feuxnuit6" node="0>1|15|9|0" />
		
        <i3dMapping id="clignotantdroit" node="0>1|15|2|0" />
		<i3dMapping id="clignotantgauche" node="0>1|15|3|0" />
		
		<i3dMapping id="anridelle" node="0>0|0|2|3" />
		<i3dMapping id="anridelle1" node="0>0|0|2|2" />
		<i3dMapping id="refannime" node="0>0" />
		
		<i3dMapping id="electricBack" node="0>1|16|1" />
        <i3dMapping id="electricBackAdapter" node="0>1|16|0|0" />
		<i3dMapping id="electricdetache" node="0>1|16|0" />

    </i3dMappings>
	
</vehicle>