<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
    <storeData>
        <name>Gosa</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>store/store.png</image>
        <price>5000</price>
        <dailyUpkeep>5</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>GOSA</brand>
        <category>trailers</category>
    </storeData>
	
	
	<base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>gosa.i3d</filename>
        <size width="3" length="7.5" lengthOffset="1.1" />
        <components>
            <component centerOfMass="0.00 0.584 -2.31"  solverIterationCount="10" mass="3306"/>
            <component centerOfMass="0.00 0.10 0.00" solverIterationCount="10" mass="1500"/>
            <component solverIterationCount="10" mass="300"/>
            <joint component1="1" component2="2" node="0>7" rotLimit="0 120 2" transLimit="0 0 0" />
            <joint component1="2" component2="3" node="1>1" rotLimit="20 0 0" transLimit="0 0 0" />
        </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">
                <wheels>
					<wheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" configId="dual" isLeft="false">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.6" repr="1>2"  forcePointRatio="0.3" initialCompression="20" suspTravel="0.15" spring="35" damper="30" rotationDamping="0.001"/>
                        <additionalWheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" isLeft="true" configId="dualConnector" offset="0.1" hasParticles="true"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" configId="dual" isLeft="true">
                        <physics tipOcclusionAreaGroupId="2" restLoad="1.6" repr="1>3" forcePointRatio="0.3" initialCompression="20" suspTravel="0.15" spring="35" damper="30" rotationDamping="0.001"/>
                        <additionalWheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" isLeft="false" configId="dualConnector" offset="0.1" hasParticles="true"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" configId="dual" isLeft="false" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="0>2"    forcePointRatio="0.3" initialCompression="20" suspTravel="0.15" spring="35" damper="30" rotationDamping="0.001"/>
                        <additionalWheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" isLeft="true" configId="dualConnector" offset="0.1" hasTireTracks="true"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" configId="dual" isLeft="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" restLoad="1.0" repr="0>3"   forcePointRatio="0.3" initialCompression="20" suspTravel="0.15" spring="35" damper="30" rotationDamping="0.001"/>
                        <additionalWheel filename="$data/shared/wheels/lizard/implement/315_80R22_5.xml" isLeft="false" configId="dualConnector" offset="0.1" hasTireTracks="true"/>
                    </wheel>             
                </wheels>
            </wheelConfiguration>
         </wheelConfigurations>
    </wheels>
	
	<rimColorConfigurations useDefaultColors="true" price="200">
		<rimColorConfiguration color="0.055 0.055 0.055"         price="0"/>
	</rimColorConfigurations>

	<tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration />
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="0>6|4" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="0>6|4|1">
                    <tensionBelt startNode="0>6|4|0" endNode="0>6|4|0|0" />
                    <tensionBelt startNode="0>6|4|2" endNode="0>6|4|2|0" />
                    <tensionBelt startNode="0>6|4|3" endNode="0>6|4|3|0" />
                    <tensionBelt startNode="0>6|4|4" endNode="0>6|4|4|0"  />
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>
	
	<fillVolume>
        <fillVolumeConfigurations>
			<fillVolumeConfiguration />
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|0|0|11|0" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
			<fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|0|0|11|1" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo> <!-- left -->
                <node node="0>6|0|0" width="1.5" length="0.4" priority="2" minHeight="0.4" />
                <node node="0>6|0|1" width="1.5" length="0.4" priority="2" minHeight="0.4" />
                <node node="0>6|0|2" width="1.5" length="1.0" />
                <node node="0>6|0|3" width="1.5" length="1.0" />
            </unloadInfo>
            <unloadInfo> <!-- right -->
                <node node="0>6|0|0" width="1.5" length="0.4" />
                <node node="0>6|0|1" width="1.5" length="0.4" />
                <node node="0>6|0|2" width="1.5" length="1.0" priority="2" minHeight="0.4" />
                <node node="0>6|0|3" width="1.5" length="1.0" priority="2" minHeight="0.4" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
	
	<configurationSets>
        <configurationSet name="$l10n_configuration_valueLoadingWagon" >
            <configuration name="tensionBelts" index="2" />
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="1" />
            <configuration name="trailer"      index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="15000" isDefault="true">
            <configuration name="tensionBelts" index="1" />
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="2" />
            <configuration name="trailer"      index="2" />-
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="20000">
            <configuration name="tensionBelts" index="1" />
            <configuration name="fillVolume"   index="3" />-
            <configuration name="fillUnit"     index="3" />
            <configuration name="trailer"      index="3" />-
        </configurationSet>
    </configurationSets>
	
    <fillUnit>
        <fillUnitConfigurations>
			<fillUnitConfiguration name="$l10n_configuration_valueTrailer0L" price="0" >
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="0" />
                </fillUnits>
                <objectChange node="0>0|0|0|1" visibilityActive="false" />
				<objectChange node="0>0|0|0|2" visibilityActive="false" />
				<objectChange node="0>0|0|0|3" visibilityActive="false" />
				<objectChange node="0>0|0|0|4" visibilityActive="false" />
				<objectChange node="0>0|0|0|5" visibilityActive="false" />
				<objectChange node="0>0|0|0|6" visibilityActive="false" />
				<objectChange node="0>0|0|0|7" visibilityActive="false" />
				<objectChange node="0>0|0|0|8" visibilityActive="false" />
				<objectChange node="0>0|0|0|9" visibilityActive="false" />
				<objectChange node="0>0|0|0|2|0" compoundChildActive="false" />
				<objectChange node="0>0|0|0|3|0" compoundChildActive="false" />
            </fillUnitConfiguration>

			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="15000" >
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="15000" >
                        <exactFillRootNode node="exactFillRootNode1" />
                        <autoAimTargetNode node="fillAutoAimTarget1" startZ="0.9" endZ="-2.8" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>0|0|0|1" visibilityActive="false" />
				<objectChange node="0>0|0|0|2" visibilityActive="true" />
				<objectChange node="0>0|0|0|3" visibilityActive="true" />
				<objectChange node="0>0|0|0|4" visibilityActive="true" />
				<objectChange node="0>0|0|0|5" visibilityActive="true" />
				<objectChange node="0>0|0|0|6" visibilityActive="true" />
				<objectChange node="0>0|0|0|7" visibilityActive="true" />
				<objectChange node="0>0|0|0|8" visibilityActive="true" />
				<objectChange node="0>0|0|0|9" visibilityActive="true" />
				<objectChange node="0>0|0|0|2|0" compoundChildActive="true" />
				<objectChange node="0>0|0|0|3|0" compoundChildActive="true" />
            </fillUnitConfiguration>
			
			<fillUnitConfiguration name="$l10n_configuration_capacityX" price="2000" params="20000">
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="20000" >
                        <exactFillRootNode node="exactFillRootNode2" />
                        <autoAimTargetNode node="fillAutoAimTarget2" startZ="0.9" endZ="-2.8" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
				<objectChange node="0>0|0|0|1" visibilityActive="true" />
				<objectChange node="0>0|0|0|2" visibilityActive="true" />
				<objectChange node="0>0|0|0|3" visibilityActive="true" />
				<objectChange node="0>0|0|0|4" visibilityActive="true" />
				<objectChange node="0>0|0|0|5" visibilityActive="true" />
				<objectChange node="0>0|0|0|6" visibilityActive="true" />
				<objectChange node="0>0|0|0|7" visibilityActive="true" />
				<objectChange node="0>0|0|0|8" visibilityActive="true" />
				<objectChange node="0>0|0|0|9" visibilityActive="true" />
				<objectChange node="0>0|0|0|2|0" compoundChildActive="true" />
				<objectChange node="0>0|0|0|3|0" compoundChildActive="true" />		
			</fillUnitConfiguration>	
		</fillUnitConfigurations>
    </fillUnit>

	<dischargeable>
        <dischargeNode node="0>6|6" emptySpeed="765"  fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="4" length="0.5" />
            <effects>
                <effectNode effectNode="0>0|0|1|0|0" materialType="unloading" materialTypeId="1" fadeTime="0.5"/>
                <effectNode effectNode="0>0|0|1|0|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
        <dischargeNode node="0>6|7" emptySpeed="765"  fillUnitIndex="1" unloadInfoIndex="2" >
            <info width="4" length="0.5" />
            <effects>
                <effectNode effectNode="0>0|0|0|10|0|0" materialType="unloading" materialTypeId="1" fadeTime="0.5"/>
                <effectNode effectNode="0>0|0|0|10|0|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>
	
	<trailer>
        <trailerConfigurations>
		    <trailerConfiguration>
            </trailerConfiguration>
            <trailerConfiguration>	
				<trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipAnimationLeft" speedScale="0.5" />
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipAnimationRight" speedScale="0.5" />
                    </tipSide>			
                </trailer>
            </trailerConfiguration>
			<trailerConfiguration>	
				<trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipAnimationLeft" speedScale="0.5" />
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipAnimationRight" speedScale="0.5" />
                    </tipSide>			
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
	<cylindered>
		<movingTools>
			<movingTool node="0>0|0">
				<dependentPart node="0>5|0"/>
				<dependentPart node="0>5|1"/>

			</movingTool>
			<movingTool node="0>0|0|0">
				<dependentPart node="0>5|0"/>
				<dependentPart node="0>5|1"/>
			</movingTool>
		</movingTools>
	
		<movingParts>
			<movingPart node="0>5|0" referencePoint="0>0|0|0|12" referenceFrame="0>5|2">
				<translatingPart node="0>5|0|0"/>
				<translatingPart node="0>5|0|0|0"/>
			</movingPart>
			<movingPart node="0>5|1" referencePoint="0>0|0|0|13" referenceFrame="0>5|3">
				<translatingPart node="0>5|1|0"/>
				<translatingPart node="0>5|1|0|0"/>
			</movingPart>
		</movingParts>
	</cylindered>
	
	
	<animations>
        <!-- tipping left -->
        <animation name="tipAnimationLeft">
            <part node="0>0|0"            startTime="1" endTime="8"   startRot="0 0 0" endRot="0 0 -30" />
            <part node="0>0|0|0|2"    startTime="1" endTime="2"   startRot="0 0 0" endRot="0 0 30" />
            <part node="0>0|0|0|10|0"    startTime="1" endTime="8"   startRot="0 90 0" endRot="40 90 0" />
			<part node="0>0|0|0|4"          startTime="0.8" endTime="1"   startRot="0 0 0" endRot="0 0 -130" />
			<part node="0>0|0|0|7"          startTime="0.8" endTime="1"   startRot="0 0 0" endRot="0 0 -130" />
        </animation>
        <!-- tipping right -->
        <animation name="tipAnimationRight">
            <part node="0>0|0|0"          startTime="1" endTime="8"   startRot="0 0 0" endRot="0 0 30" />
            <part node="0>0|0|0|3"    startTime="1" endTime="2"   startRot="-180 0 180" endRot="-180 0 150" />
            <part node="0>0|0|1|0"    startTime="1" endTime="8"   startRot="0 -90 0" endRot="-40 -90 0" />
			<part node="0>0|0|0|5"          startTime="0.8" endTime="1"   startRot="0 0 0" endRot="0 0 130" />
			<part node="0>0|0|0|6"          startTime="0.8" endTime="1"   startRot="0 0 0" endRot="0 0 130" />
        </animation>
    </animations>
	
	
	
	<connectionHoses>
        <target attacherJointIndices="1" type="hydraulicIn" node="0>10|0"/>
        <target attacherJointIndices="1" type="electric" node="0>10|2" length="1.75" diameter="0.008" />
        <target attacherJointIndices="1" type="airDoubleRed"  node="0>10|1" />
        <hose inputAttacherJointIndices="1" type="airDoubleRed"  node="2>2|0|2"  length="0.5" diameter="0.01" straighteningFactor="1.5" >
            <objectChange node="2>2|1|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="electric"  node="2>2|0|1"  length="1" diameter="0.01" straighteningFactor="0.5">
            <objectChange node="2>2|1|1" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="2>2|0|0" length="1" diameter="0.01" straighteningFactor="0.5">
            <objectChange node="2>2|1|0" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
	<lights>
        <realLights>
		<high>
                <light node="0>9|6|1" lightTypes="0" />
                <turnLightLeft node="0>9|7|0|1" />
                <turnLightRight node="0>9|7|1|1" />
                <brakeLight node="0>9|6|2" />
            </high>
        </realLights>
		<defaultLights>
		<defaultLight shaderNode="0>9|0" lightTypes="0"/>
			<defaultLight shaderNode="0>9|4" lightTypes="0"/>
        </defaultLights>
		<turnLights>
		<turnLightLeft shaderNode="0>9|1" />
			<turnLightRight shaderNode="0>9|3" />
        </turnLights>
		<brakeLights>
		<brakeLight shaderNode="0>9|2" />
			<brakeLight shaderNode="0>9|5" />
        </brakeLights>
    </lights>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="2>1" jointType="trailer" rootNode="2>" attacherHeight="0.874" />
        </inputAttacherJoints>
        <brakeForce>0.45</brakeForce>
    </attachable>
	<attacherJoints>
        <attacherJoint node="0>4" jointType="trailer" lowerRotLimit="10 55 55" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>

	<foliageBending>
        <bendingNode minX="-1.0" maxX="1.0" minZ="-2.0" maxZ="2.25" yOffset="0.6" />
        <bendingNode minX="-1.0" maxX="1.0" minZ="-2.0" maxZ="-0.3" yOffset="0.6" />
    </foliageBending>
	
	<baseMaterial>
        <material name="Body" baseNode="0>0|0|0|0">
            <shaderParameter name="colorMat0" value="0.078 0.15 0"/>
			<shaderParameter name="colorMat1" value="0.078 0.15 0"/>
			<shaderParameter name="colorMat3" value="0.078 0.15 0"/>
			<shaderParameter name="colorMat4" value="0.078 0.15 0"/>
        </material>
    </baseMaterial>

    <baseMaterialConfigurations>
        <baseMaterialConfiguration color="0.078 0.15 0.048 0"/>
		<baseMaterialConfiguration color="NEWHOLLAND_BLUE1" price="1000"/>
		<baseMaterialConfiguration color="NEWHOLLAND_BLUE2" price="1000"/>
		<baseMaterialConfiguration color="MASSEYFERGUSON_RED" price="1000"/>
		<baseMaterialConfiguration color="0.61 0.15 0.048 0" price="1000"/>
		<baseMaterialConfiguration color="PALADIN_GREY" price="1000"/>
        <material name="Body" shaderParameter="colorMat0" />
		<material name="Body" shaderParameter="colorMat1" />
		<material name="Body" shaderParameter="colorMat3" />
		<material name="Body" shaderParameter="colorMat4" />
    </baseMaterialConfigurations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
	
	<i3dMappings>
        <i3dMapping id="exactFillRootNode1" node="0>6|3" />
		<i3dMapping id="fillAutoAimTarget1" node="0>6|2" />
		<i3dMapping id="exactFillRootNode2" node="0>6|5" />
		<i3dMapping id="fillAutoAimTarget2" node="0>6|1" />
    </i3dMappings>

</vehicle>
