<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
    <annotation>Fabien GTI</annotation>

    <storeData>
        <name>Demarest_19T</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store.png</image>
        <price>27200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>DEMAREST</brand>
        <category>trailers</category>
    </storeData>
	
    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>benne.i3d</filename>
        <size width="3.5" length="8" lengthOffset="0.75"/>
        <components>
            <component centerOfMass="0 1 0" solverIterationCount="4" mass="2000"/>
			<component centerOfMass="0 0 0" solverIterationCount="4" mass="6850"/>

			<joint component1="1" component2="2" node="0>3" rotLimit="8 0 0" rotLimitSpring="0 0 4000" rotLimitDamping="0 0 75" maxRotDriveForce="0 0 10" rotDriveRotation="0 0 0" rotDriveSpring="0 0 20" rotDriveDamping="0 0 10" breakable="false"/>
		
		
		</components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="Default" price="0" brand="TRELLEBORG">
                <wheels>               
                    <wheel filename="Wheel/roue1.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="1>0|0" forcePointRatio="0.2" initialCompression="22" suspTravel="0.12" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="1>0|1" forcePointRatio="0.2" initialCompression="22" suspTravel="0.12" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="1>0|2" forcePointRatio="0.2" initialCompression="22" suspTravel="0.12" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="Wheel/roue1.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="0.7" repr="1>0|3" forcePointRatio="0.2" initialCompression="22" suspTravel="0.12" spring="40" damper="50"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
	</wheels>
		
	<lights>
       <realLights>
            <high>
                <light node="0>1|1|0" lightTypes="0" />
                <turnLightLeft node="0>1|1|1" />
                <turnLightRight node="0>1|1|2" />
                <brakeLight node="0>1|1|3" />
				<reverseLight node="0>1|1|4"/>
            </high>
        </realLights>
		<defaultLights>
            <defaultLight shaderNode="0>0|0|5" lightTypes="0"/>
			<defaultLight shaderNode="0>0|1|5" lightTypes="0"/>
        </defaultLights>

        <brakeLights>
             <brakeLight shaderNode="0>0|0|4" />
			<brakeLight shaderNode="0>0|1|4" />
        </brakeLights>
		
		<reverseLights>
             <reverseLight shaderNode="0>0|0|3" />
		     <reverseLight shaderNode="0>0|1|3" />
        </reverseLights>

        <turnLights>
            <turnLightLeft shaderNode="0>0|0|6" />
            <turnLightRight shaderNode="0>0|1|6" />
        </turnLights>
		
		<beaconLights>			
            <beaconLight node="0>0|17|0|1" filename="$data/shared/assets/beaconLights/lizard/beaconLight06.xml"/>
		</beaconLights>
		
    </lights>
	
		
    <attachable>
    <inputAttacherJoints>
            <inputAttacherJoint node="0>4|1" jointType="trailerLow" attacherHeight="0.9" />
     </inputAttacherJoints>
	<brakeForce>1.6</brakeForce>
    <airConsumer usage="0.5" />
	<support animationName="moveSupport" />
	</attachable>
	
	<suspensions>
        <suspension node="0>4" weight="400" minRotation="-5 0 0" maxRotation="0 0 0" suspensionParametersX="75 17" />
    </suspensions>
	
	<dynamicallyLoadedParts> 
        <dynamicallyLoadedPart node="0|0" linkNode="0>0|2|0|0|0"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>0|2|1|0|0"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>0|2|2|0|0"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>0|2|3|0|0"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>
	
	 <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>0|2|0|1"  length="1" diameter="0.02">
		    <objectChange node="0>0|2|0|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="hydraulicOut"  node="0>0|2|1|1"  length="1" diameter="0.02">
		    <objectChange node="0>0|2|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="hydraulicIn"  node="0>0|2|2|1"  length="1" diameter="0.02">
			<objectChange node="0>0|2|2|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="hydraulicOut"  node="0>0|2|3|1"  length="1" diameter="0.02">
		    <objectChange node="0>0|2|3|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="electric" node="0>0|2|4" length="1.75" diameter="0.008" minDeltaY="-0.246"/>
    </connectionHoses>
	

    <animations>
        <animation name="moveSupport">
            <part node="0>4|0|0|0|0" startTime="0" duration="0.2" startRot="0 0 90" endRot="0 0 0" />
            <part node="0>4|0|0|0|0|0" startTime="0" duration="0.2" startTrans="0 -0.013 0" endTrans="0 -0.396 0"  />
			<part node="0>4|0|1" startTime="0" duration="0.1" startScale="0 0 0" endScale="1 0.85 1"/>
        </animation>
		<animation name="tipAnimationBack">
			<part node="0>2" startTime="0" endTime="15" startRot="0 0 0" endRot="-60 0 0" />	
			<part node="0>2|2" startTime="0" endTime="15" startRot="-151.215 1.369 0" endRot="-115.194 1.369 0" />
			<part node="0>2|2|0" startTime="0" endTime="15" startTrans="-0.005 0.003 0.299" endTrans="-0.005 0.003 1.316" />
			<part node="0>2|3" startTime="0" endTime="15" startRot="-151.215 -1.369 0" endRot="-115.194 -1.369 0" />
			<part node="0>2|3|0" startTime="0" endTime="15" startTrans="-0.005 0.003 0.299" endTrans="-0.005 0.003 1.316" />
			<part node="0>2|5|3|0" startTime="0" endTime="15" startRot="0 0 0" endRot="40 0 0" />
			<part node="0>2|1" startTime="0" endTime="15" startRot="0 0 0" endRot="70 0 0" />
        </animation>
    </animations>
	
	<cylindered>
		<movingTools>
			<!--Vérin-->
			<movingTool node="0>2" playSound="true">
				<dependentPart node="0>1|0" />
			</movingTool>
		</movingTools>
	
		<movingParts>  
			<!--Vérin-->
			<movingPart node="0>1|0" referencePoint="0>2|4" referenceFrame="0>2|4">           
				<translatingPart node="0>1|0|0" />
				<translatingPart node="0>1|0|0|0" />
				<translatingPart node="0>1|0|0|0|0" />	
				<translatingPart node="0>1|0|0|0|0|0" />					
			</movingPart>	
		</movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND" linkNode="0>"/>
        </sounds>
    </cylindered>
	
	<fillUnit>
        <fillUnitConfigurations>

            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="19000">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="19000" >
                        <exactFillRootNode node="0>2|6" />
                        <autoAimTargetNode node="0>2|5|2|0" startZ="5" endZ="0" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>2|5|0|0" scaleActive="1 0.771 0.875" scaleInactive="1 1 1"/>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="24000">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="24000" >
                        <exactFillRootNode node="0>2|10" />
                        <autoAimTargetNode node="0>2|5|2|0" startZ="5" endZ="0" invert="false" fillUnitIndex="2" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>2|0|6" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>2|7|6" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>2|8|2" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>2|9" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>2|1|2" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>2|11" visibilityActive="true" visibilityInactive="false"/>						
				<objectChange node="0>2|5|0|0" scaleActive="1 1.503 0.875" scaleInactive="1 1 1"/>				
            </fillUnitConfiguration>
			
        </fillUnitConfigurations>
    </fillUnit>
	
	<fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>2|5|0|0" maxDelta="0.20" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="0>2|5|1|1" width="1.5" length="1.0" />            
			</unloadInfo>
        </unloadInfos>
        <heightNodes>
            <heightNode fillVolumeIndex="1">
                <refNode node="0>2|5|1|0|0" />
                <refNode node="0>2|5|1|0|1" />
                <node node="0>2|5|3|0" orientateToWorldZ="true" />
                <node node="0>2|5|3|0|1" baseScale="1 1 1" transAxis="0 0.2 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="0>6|0" emptySpeed="1200" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="2.0" length="0.5" zOffset="-1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>2|5|3|0|0" effectClass="ParticleEffect" extraDistance="1"/>
                    <effectNode effectNode="0>2|5|3|0|1" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistance="0.1" extraDistanceNode="0>6|0"/>
                </effectNode>
                <effectNode effectNode="0>2|5|3|0|2" materialType="smoke" materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<ai>
        <allowTurnBackward value="false"/>
        <turningRadiusLimitation radius="9"/>
    </ai>
	
	<vehicleTypeConfigurations>
		<vehicleTypeConfiguration name="$l10n_Jaune" price="0" vehicleType="trailer">
			<objectChange node="0>2|0" visibilityActive="true"/>
			<objectChange node="0>2|1|2|0" visibilityActive="true"/>
			<objectChange node="0>2|2|1" visibilityActive="true"/>
			<objectChange node="0>2|3|1" visibilityActive="true"/>
			
		    <objectChange node="0>2|7" visibilityActive="false"/>
			<objectChange node="0>2|1|2|1" visibilityActive="false"/>
			<objectChange node="0>2|2|2" visibilityActive="false"/>
			<objectChange node="0>2|3|2" visibilityActive="false"/>
			
			<objectChange node="0>2|8" visibilityActive="false"/>
			<objectChange node="0>2|1|2|2" visibilityActive="false"/>
			<objectChange node="0>2|2|3" visibilityActive="false"/>
			<objectChange node="0>2|3|3" visibilityActive="false"/>
        </vehicleTypeConfiguration>
		<vehicleTypeConfiguration name="$l10n_Vert" price="0" vehicleType="trailer">
			<objectChange node="0>2|0" visibilityActive="false"/>
			<objectChange node="0>2|1|2|0" visibilityActive="false"/>
			<objectChange node="0>2|2|1" visibilityActive="false"/>
			<objectChange node="0>2|3|1" visibilityActive="false"/>
			
		    <objectChange node="0>2|7" visibilityActive="true"/>
			<objectChange node="0>2|1|2|1" visibilityActive="true"/>
			<objectChange node="0>2|2|2" visibilityActive="true"/>
			<objectChange node="0>2|3|2" visibilityActive="true"/>
			
			<objectChange node="0>2|8" visibilityActive="false"/>
			<objectChange node="0>2|1|2|2" visibilityActive="false"/>
			<objectChange node="0>2|2|3" visibilityActive="false"/>
			<objectChange node="0>2|3|3" visibilityActive="false"/>
		</vehicleTypeConfiguration>
		<vehicleTypeConfiguration name="$l10n_Rouge" price="0" vehicleType="trailer">
			<objectChange node="0>2|0" visibilityActive="false"/>
			<objectChange node="0>2|1|2|0" visibilityActive="false"/>
			<objectChange node="0>2|2|1" visibilityActive="false"/>
			<objectChange node="0>2|3|1" visibilityActive="false"/>
			
		    <objectChange node="0>2|7" visibilityActive="false"/>
			<objectChange node="0>2|1|2|1" visibilityActive="false"/>
			<objectChange node="0>2|2|2" visibilityActive="false"/>
			<objectChange node="0>2|3|2" visibilityActive="false"/>
			
			<objectChange node="0>2|8" visibilityActive="true"/>
			<objectChange node="0>2|1|2|2" visibilityActive="true"/>
			<objectChange node="0>2|2|3" visibilityActive="true"/>
			<objectChange node="0>2|3|3" visibilityActive="true"/>
		</vehicleTypeConfiguration>
    </vehicleTypeConfigurations>
	
	<configurationSets>
        <configurationSet name="$l10n_configuration_capacityX" params="19000" isDefault="true">
            <configuration name="fillUnit"     index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="24000">
            <configuration name="fillUnit"     index="2" />
        </configurationSet>
    </configurationSets>
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="20" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>

</vehicle>