<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <storeData>
        <name>ORM 240C</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store_orengeorm240c.dds</image>
        <price>37600</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ORENGE</brand>
        <category>trailers</category>
        <shopTranslationOffset>0 -0.095 0</shopTranslationOffset>
        <shopRotationOffset>-1.35 0 0</shopRotationOffset>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>ORM240C.i3d</filename>
		<size width="3" length="12"/>
        <components>
            <component centerOfMass="-0.01 1.00 0.18" solverIterationCount="10" mass="8862" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

    <wheels>
        <wheelConfigurations>
			<wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="MICHELIN">
                <wheels>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|0" forcePointRatio="0.5" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
						<steeringAxle scale="-0.7" rotMax="10" rotMin="-10"/>  
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|1" forcePointRatio="0.5" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
					<wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|2" forcePointRatio="0.5" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|5" forcePointRatio="0.5" initialCompression="34" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|4" forcePointRatio="0.5" initialCompression="34" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|3" forcePointRatio="0.5" initialCompression="34" suspTravel="0.15" spring="40" damper="50"/>
						<steeringAxle scale="-0.7" rotMax="10" rotMin="-10"/>  
                    </wheel>
                </wheels>
            </wheelConfiguration>
			<wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="0" brand="TRELLEBORG">
                <wheels>
                    <wheel filename="$data/shared/wheels/trelleborg/TwinRadial/680_55R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|0" forcePointRatio="0.5" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
						<steeringAxle scale="-0.7" rotMax="10" rotMin="-10"/>  
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TwinRadial/680_55R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|1" forcePointRatio="0.5" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
					<wheel filename="$data/shared/wheels/michelin/cargoXBib/710_50R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|2" forcePointRatio="0.5" initialCompression="52" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TwinRadial/680_55R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|5" forcePointRatio="0.5" initialCompression="34" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TwinRadial/680_55R26_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|4" forcePointRatio="0.5" initialCompression="34" suspTravel="0.15" spring="40" damper="50"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/trelleborg/TwinRadial/680_55R26_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics restLoad="1.3" repr="0>1|2|3" forcePointRatio="0.5" initialCompression="34" suspTravel="0.15" spring="40" damper="50"/>
						<steeringAxle scale="-0.7" rotMax="10" rotMin="-10"/>  
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <hubs>
			<color0 useBaseColor="true" />
            <color1>FENDT_GREY1</color1>
            <hub linkNode="0>1|2|3"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.335 0.335 0.335" />
            <hub linkNode="0>1|2|4"  filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true"  scale="0.335 0.335 0.335" />
            <hub linkNode="0>1|2|5" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="true" scale="0.335 0.335 0.335" />
            <hub linkNode="0>1|2|0" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.335 0.335 0.335" />
			<hub linkNode="0>1|2|1" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.335 0.335 0.335" />
            <hub linkNode="0>1|2|2" filename="$data/shared/wheels/hubs/hub_n10_5.xml" isLeft="false" scale="0.335 0.335 0.335" />
        </hubs>
    </wheels>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>1|4" jointType="trailerLow" attacherHeight="0.73"/>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
        <brakeForce>0.8</brakeForce>
    </attachable>
	
	<powerTakeOffs>
		<input inputNode="0>1|7" detachNode="0>1|8" inputAttacherJointIndices="1" aboveAttacher="true" filename="$data/shared/assets/powerTakeOffs/walterscheidW.xml"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="450" neededMaxPtoPower="40"/>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>1|3|6" length="1.5" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>1|3|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="0>1|3|7" length="1.5" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>1|3|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>1|3|8" length="1.5" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>1|3|3" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="hydraulicIn" node="0>1|3|9" length="1.5" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>1|3|4" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="1" type="electric" node="0>1|3|10" length="1.5" diameter="0.02" straighteningFactor="2">
            <objectChange node="0>1|3|5" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
    <lights>
        <sharedLight linkNode="0>1|5|3|0"  filename="$data/shared/assets/lights/lizard/rear3ChamberLight_03_left.xml" />
        <sharedLight linkNode="0>1|5|3|1"  filename="$data/shared/assets/lights/lizard/rear3ChamberLight_03_right.xml" />
		<sharedLight linkNode="0>1|5|3|2"  filename="$data/shared/assets/lights/lizard/sideMarker_04_left.xml" />
        <sharedLight linkNode="0>1|5|3|3" filename="$data/shared/assets/lights/lizard/sideMarker_04_right.xml" />
		<sharedLight linkNode="0>1|5|3|4"  filename="$data/shared/assets/lights/lizard/sideMarker_04_left.xml" />
        <sharedLight linkNode="0>1|5|3|5" filename="$data/shared/assets/lights/lizard/sideMarker_04_right.xml" />
		<sharedLight linkNode="0>1|5|3|9"  filename="$data/shared/assets/lights/lizard/rear3ChamberLight_03_right.xml" />
        <sharedLight linkNode="0>1|5|3|8"  filename="$data/shared/assets/lights/lizard/rear3ChamberLight_03_left.xml" />

        <realLights>
            <high>
                <light node="0>1|5|0" lightTypes="0"/>
                <turnLightLeft node="0>1|5|1"/>
                <turnLightRight node="0>1|5|2"/>
                <brakeLight node="0>1|5|0"/>
            </high>
        </realLights>
		
		<beaconLights>
            <beaconLight node="0>1|5|4" filename="Textures/sacex.xml"/>
        </beaconLights>
    </lights>

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

    <animations>
        <animation name="tipAnimationBack">
            <part node="0>0"     startTime="0" endTime="12" startRot="0 0 0" endRot="-40 0 0" />
			<part node="0>0|8|0"     startTime="0" endTime="12" startRot="0 0 0" endRot="40 0 0" />
		</animation>
		<animation name="tipAnimationBackDoor">
			<part node="0>0|0"     startTime="0.0" endTime="3" startRot="0 0 0" endRot="86 0 0" />
			<part node="0>0|1"     startTime="0.0" endTime="3" startRot="60.778 0 0" endRot="78.434 0 0" />
			<part node="0>0|1|0" startTime="0" endTime="3" startTrans="0 -0.003 -0.074" endTrans="0 -0.003 -0.842" />
		</animation>
		<animation name="tipAnimationBackGrainDoor">
            <part node="0>0" startTime="0" endTime="20" startRot="0 0 0" endRot="-42 0 0" />
			<part node="0>0|8|1" startTime="0" endTime="20" startRot="0 0 0" endRot="42 0 0" />
			<part node="0>0|8|2" startTime="0" endTime="20" startRot="0 0 0" endRot="42 0 0" />
            <part node="0>0|0|0" startTime="0" endTime="5" startTrans="0 -1.204 -1.819" endTrans="0 -0.994 -1.792" />
            <part node="0>0|0|0|0" startTime="0" endTime="5" startRot="0 0 0" endRot="0 0 -44.28" />
			<part node="0>0|0|5" startTime="0" endTime="5" startTrans="0 -1.204 -1.819" endTrans="0 -0.994 -1.792" />
            <part node="0>0|0|5|0" startTime="0" endTime="5" startRot="0 0 0" endRot="0 0 44.28" />
        </animation>
        <animation name="moveSupport">
            <part node="0>1|0" startTime="0" endTime="0.2" startRot="0 0 190" endRot="0 0 0"/>
            <part node="0>1|0|0" startTime="0" endTime="0.2" startTrans="0 0.254 0" endTrans="0 0 0"/>
        </animation>
    </animations>
	
	<cylindered>
        <movingTools>
            <movingTool node="0>0" playSound="true" >
                <dependentPart node="0>1|6" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="0>1|6" referencePoint="0>0|5" referenceFrame="0>0|5" lockAxis="1">
                <translatingPart node="0>1|6|0" />
                <translatingPart node="0>1|6|0|0" />
                <translatingPart node="0>1|6|0|0|0" />
                <translatingPart node="0>1|6|0|0|0|0" />
            </movingPart>
			<movingPart node="0>0|1" referencePoint="0>0|0|3" referenceFrame="0>0|0|3">
				<translatingPart node="0>0|1|0" />
			</movingPart>
        </movingParts>
        <sounds>
            <hydraulic template="DEFAULT_HYDRAULIC_SOUND"/>
        </sounds>
    </cylindered>
	
	<configurationSets>
        <configurationSet name="$l10n_configuration_capacityX" params="23000">
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="1" />
            <configuration name="trailer"      index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="23250">
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="2" />
			<configuration name="trailer"      index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="23500">
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="3" />
            <configuration name="trailer"      index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="24200">
            <configuration name="fillVolume"   index="3" />
            <configuration name="fillUnit"     index="4" />
            <configuration name="trailer"      index="1" />
        </configurationSet>
    </configurationSets>

   <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="23000">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="23000" >
                        <exactFillRootNode node="0>0|7|0" />
                        <autoAimTargetNode node="0>0|7|1" startZ="4.2" endZ="-2.6" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="500" params="23250">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="23250" >
                        <exactFillRootNode node="0>0|7|0" />
                        <autoAimTargetNode node="0>0|7|1" startZ="4.2" endZ="-2.6" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>0|12" visibilityActive="true" visibilityInactive="false"/>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="1500" params="23500">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="23500" >
                        <exactFillRootNode node="0>0|7|0" />
                        <autoAimTargetNode node="0>0|7|1" startZ="4.2" endZ="-2.6" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>0|10|1|0" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|1" visibilityActive="true" visibilityInactive="false"/>
            </fillUnitConfiguration>
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="2500" params="24200">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="24200" >
                        <exactFillRootNode node="0>0|7|0" />
                        <autoAimTargetNode node="0>0|7|1" startZ="4.2" endZ="-2.6" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>0|11|1|0" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="0>0|0|4" visibilityActive="true" visibilityInactive="false"/>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|6|0" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
			<fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|10|0" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
			<fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|11|0" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
		    <unloadInfo>
                <node node="0>0|6|2" width="2" length="1.0" />
            </unloadInfo>
        </unloadInfos>

        <heightNodes>
            <heightNode fillVolumeIndex="1">
                <refNode node="0>0|6|1|0" />
                <refNode node="0>0|6|1|1" />
                <node node="0>0|8|0|1" baseScale="1 1 1" transAxis="0 0.9 0" scaleAxis="0 0 0" orientateToWorldZ="true"/>
                <node node="0>0|8|0|0" baseScale="1 0.2 1" transAxis="0 0 0" scaleAxis="0 0.5 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.4"/>
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideBackGrainDoor" dischargeNodeIndex="2" >
                        <animation name="tipAnimationBackGrainDoor" speedScale="1.0" />
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
    <dischargeable>
        <dischargeNode node="0>0|9|0" emptySpeed="1300" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="2.0" length="0.5" zOffset="-1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|8|0|0" effectClass="ParticleEffect" extraDistance="1"/>
                    <effectNode effectNode="0>0|8|0|1" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistance="0.1" extraDistanceNode="0>0|9|0"/>
                </effectNode>
                <effectNode effectNode="0>0|8|0|2" materialType="smoke" materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
        <dischargeNode node="0>0|9|1" emptySpeed="250" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="5" length="5" zOffset="-1" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|8|1|1" effectClass="ParticleEffect" />
                    <effectNode effectNode="0>0|8|1|0" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistance="0.1" />
                </effectNode>
				<effectNode effectClass="TipEffect">
					<effectNode effectNode="0>0|8|2|0" effectClass="ParticleEffect" />
					<effectNode effectNode="0>0|8|2|1" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistance="0.1" />
                </effectNode>
                <effectNode effectNode="0>0|8|1|2" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<baseMaterial>
        <material name="lambert1" baseNode="0>0">
            <shaderParameter name="colorMat1" value="1 0.001 0.001 1"/>
        </material>       
    </baseMaterial>
	
	<baseMaterialConfigurations price="150" useDefaultColors="false" defaultColorIndex="0">
        <baseMaterialConfiguration name="$l10n_O" color="1 0.001 0.001 1"/>
		<baseMaterialConfiguration name="$l10n_B" color="0.01 0.01 0.01 1"/>
        <material name="lambert1" shaderParameter="colorMat1" />
    </baseMaterialConfigurations>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <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"/>
    </foliageBending>
</vehicle>
