<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
	
	<storeData>
        <name>Tehnostroj 7T</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>Texture/store.dds</image>
        <price>7900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>TEHNOSTROJ</brand>
        <category>trailers</category>
        <vertexBufferMemoryUsage>2862592</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>471040</indexBufferMemoryUsage>
        <textureMemoryUsage>2686976</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
	
	<base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>Tehnostroj.i3d</filename>
        <size width="3" length="7.5" lengthOffset="1.1" />
        <components maxMass="1830">
            <component centerOfMass="0 0.6 -0.4"  solverIterationCount="10" mass="1830"/>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="1350"/>
            <component solverIterationCount="10" mass="350"/>
            <joint component1="1" component2="2" node="0>5" rotLimit="0 120 10" transLimit="0 0 0" />
            <joint component1="2" component2="3" node="1>2" rotLimit="20 0 0" transLimit="0 0 0" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>
	
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.2">
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.1" repr="0>0" forcePointRatio="0.5" radius="0.52" width="0.315" mass="0.090" initialCompression="20" suspTravel="0.20" spring="30" damper="7" maxLongStiffness="8" maxLatStiffness="100" frictionScale="1.60" tireType="mud"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.1" repr="0>1" forcePointRatio="0.5" radius="0.52" width="0.315" mass="0.090" initialCompression="20" suspTravel="0.20" spring="30" damper="7" maxLongStiffness="8" maxLatStiffness="100" frictionScale="1.60" tireType="mud"/>
                    </wheel>
                    <wheel isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="1>0" forcePointRatio="0.5" radius="0.52" width="0.315" mass="0.090" initialCompression="20" suspTravel="0.20" spring="30" damper="7" maxLongStiffness="8" maxLatStiffness="100" frictionScale="1.60" tireType="mud"/>
                    </wheel>
                    <wheel isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.7" repr="1>1" forcePointRatio="0.5" radius="0.52" width="0.315" mass="0.090" initialCompression="20" suspTravel="0.20" spring="30" damper="7" maxLongStiffness="8" maxLatStiffness="100" frictionScale="1.60" tireType="mud"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>
	
	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="2>0|0" jointType="trailer" rootNode="2>" attacherHeight="0.874" />
        </inputAttacherJoints>
        <brakeForce force="0.45"/>
		<support animationName="moveSupport" />
    </attachable>
	
	<attacherJoints>
        <attacherJoint node="0>4" jointType="trailer" lowerRotLimit="25 70 80" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" >
            <schema position="1 0" rotation="0" invertX="false" />
        </attacherJoint>
        <sounds>
            <attach template="ATTACH_01" linkNode="0>" />
        </sounds>
    </attacherJoints>

    <lights>     
        <defaultLights>
            <defaultLight shaderNode="0>3|0|0|5|0|0|0|3|0" lightTypes="0"/>
			<defaultLight shaderNode="0>3|0|0|5|0|0|0|3|1" lightTypes="0"/>
            <defaultLight shaderNode="0>3|0|0|5|0|0|0|4|0" lightTypes="0"/>
			<defaultLight shaderNode="0>3|0|0|5|0|0|0|4|1" lightTypes="0"/>
            <defaultLight shaderNode="0>2|2|1" lightTypes="0"/>
			<defaultLight shaderNode="0>2|2|5" lightTypes="0"/>
            <defaultLight shaderNode="0>2|3|1" lightTypes="0"/>
			<defaultLight shaderNode="0>2|3|5" lightTypes="0"/>
        </defaultLights>
		<turnLights>
            <turnLightLeft shaderNode="0>2|2|0" />
            <turnLightLeft shaderNode="0>2|2|3" />
			<turnLightRight shaderNode="0>2|3|0" />
			<turnLightRight shaderNode="0>2|3|3" />
        </turnLights>
		<brakeLights>
            <brakeLight shaderNode="0>2|2|2" />
			<brakeLight shaderNode="0>2|2|4" />
            <brakeLight shaderNode="0>2|3|2" />
			<brakeLight shaderNode="0>2|3|4" />
        </brakeLights>
        <realLights>
            <low>
                <light node="0>2|4|0" lightTypes="0" />
                <turnLightLeft node="0>2|4|1" />
                <turnLightRight node="0>2|4|2" />
                <brakeLight node="0>2|4|0" />
            </low>
            <high>
                <light node="0>2|4|0" lightTypes="0" />
                <turnLightLeft node="0>2|4|1" />
                <turnLightRight node="0>2|4|2" />
                <brakeLight node="0>2|4|0" />
            </high>
        </realLights>
    </lights>

	<fillVolume>
       <fillVolumeConfigurations>
            <fillVolumeConfiguration />
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|0|0|4|1" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>3|0|0|4|0" maxDelta="0.23" maxAllowedHeapAngle="18" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>3|0|0|3|0" width="2" length="1.0" />
            </unloadInfo>
            <unloadInfo>
                <node node="0>3|0|0|3|1" width="1" length="4.0" />
            </unloadInfo>
            <unloadInfo>
                <node node="0>3|0|0|3|1" width="1" length="4.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <configurationSets>
        <configurationSet name="Transport" >
            <configuration name="tensionBelts" index="2" />
            <configuration name="fillVolume"   index="1" />
            <configuration name="fillUnit"     index="1" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="4000" isDefault="true">
            <configuration name="tensionBelts" index="1" />
            <configuration name="fillVolume"   index="2" />
            <configuration name="fillUnit"     index="2" />
        </configurationSet>
        <configurationSet name="$l10n_configuration_capacityX" params="8000">
            <configuration name="tensionBelts" index="1" />
            <configuration name="fillVolume"   index="3" />
            <configuration name="fillUnit"     index="3" />
        </configurationSet>
    </configurationSets>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="Transport" price="0" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="bulk" capacity="0" />
                </fillUnits>
                <objectChange node="0>3|0|0|5|0|1" visibilityActive="false" />
                <objectChange node="0>3|0|0|0|0|0" compoundChildActive="false" />
                <objectChange node="0>3|0|0|1|0|1" compoundChildActive="false" />
                <objectChange node="0>3|0|0|2|3" compoundChildActive="false" />
                <objectChange node="0>3|0|0|2|4" compoundChildActive="false" />
                <objectChange node="0>3|0|0|0|0|1" visibilityActive="false" />
                <objectChange node="0>3|0|0|0|0|1|0" visibilityActive="false" />
                <objectChange node="0>3|0|0|1|0|0" visibilityActive="false" />
                <objectChange node="0>3|0|0|1|0|0|0" visibilityActive="false" />
            </fillUnitConfiguration>

            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="500" params="4000" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="bulk" capacity="4000" >
                        <exactFillRootNode node="0>3|0|0|15" />
                        <autoAimTargetNode node="0>3|0|0|14" startZ="2.4" endZ="-1.8" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
                <objectChange node="0>3|0|0|2|3" compoundChildActive="false" />
                <objectChange node="0>3|0|0|2|4" compoundChildActive="false" />
                <objectChange node="0>3|0|0|5|0|1" visibilityActive="false" />
            </fillUnitConfiguration>

            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="1500" params="8000">
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="bulk" capacity="8000" >
                        <exactFillRootNode node="0>3|0|0|6" />
                        <autoAimTargetNode node="0>3|0|0|7" startZ="2.4" endZ="-1.8" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	<trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipAnimationLeft" speedScale="1.0" startTipTime="0.3"/>
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipAnimationRight" speedScale="1.0" startTipTime="0.3"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

	<tipReferencePoints>
        <tipReferencePoint node="0>2|7|1" width="2.5"/>
        <tipReferencePoint node="0>2|7|0" width="3"/>
    </tipReferencePoints>

	<dischargeable>
        <dischargeNode node="0>2|7|1" emptySpeed="765"  fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="4" length="0.5" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>3|0|0|8|1|0" effectClass="ParticleEffect" />
                    <effectNode effectNode="0>3|0|0|8|0|0" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistanceNode="0>2|7|1" extraDistance="0.2"/>
                </effectNode>
                <effectNode effectNode="0>3|0|0|8|0|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
        <dischargeNode node="0>2|7|0" emptySpeed="765"  fillUnitIndex="1" unloadInfoIndex="2" >
            <info width="4" length="0.5" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>3|0|0|9|1|0" effectClass="ParticleEffect" />
                    <effectNode effectNode="0>3|0|0|9|0|0" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistanceNode="0>2|7|0" extraDistance="0.2"/>
                </effectNode>
                <effectNode effectNode="0>3|0|0|9|0|1" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <fillRootNode node="0>" />
    <fillMassNode node="0>" />
    <supportsFillTriggers value="true" />

    <cylindered>
        <movingTools>
            <movingTool node="0>3" playSound="true" >
                <dependentPart node="0>2|1" />
            </movingTool>
            <movingTool node="0>3|0" playSound="true" >
                <dependentPart node="0>2|1" />
            </movingTool>
        </movingTools>

    	<movingParts>
        	<movingPart node="0>2|1" referencePoint="0>3|0|0|10" referenceFrame="0>3|0|0|10" limitedAxis="3" >
            		<translatingPart node="0>2|1|1" />
            		<translatingPart node="0>2|1|1|1" />
        	</movingPart>	
    	</movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>

    <connectionHoses>
        <target attacherJointIndices="1" type="hydraulicIn" node="0>2|6|0"/> <!-- hydraulika vzadu -->
        <target attacherJointIndices="1" type="electric" node="0>2|6|2"/> <!-- elektrika vzadu -->
        <target attacherJointIndices="1" type="airDoubleRed" node="0>2|6|1"/> <!-- vzduch vzadu -->
        <hose inputAttacherJointIndices="1" type="electric" node="1>4" length="2.4" diameter="0.015" straighteningFactor="1.5">
            <objectChange node="2>0|6" visibilityActive="false" visibilityInactive="true"/>
            <objectChange node="2>0|7" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="airDoubleRed" node="2>0|8|1|0" length="0.8" diameter="0.02" straighteningFactor="1"> <!-- vzduch traktor -->
            <objectChange node="2>0|2" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="2>0|8|0|0" length="0.9" diameter="0.02" straighteningFactor="1"> <!-- hydraulika traktor -->
            <objectChange node="2>0|3" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <animations>
        <!-- tipping left -->
        <animation name="tipAnimationLeft">
            <part node="0>3|0"            startTime="1.5" endTime="9"   startRot="0 0 0" endRot="0 0 -40" />
            <part node="0>3|0|0|0|0" startTime="0.51" endTime="1.5" startRot="0 0 0" endRot="0 0 -180"/>
            <part node="0>3|0|0|0|0" startTime="1.5" endTime="9" startRot="0 0 0" endRot="0 0 -140"/>
            <part node="0>3|0|0|5|0|3|0|0" startTime="0.1" endTime="0.5" startRot="0 0 0" endRot="0 40 0"/>
            <part node="0>3|0|0|5|0|3|0|0|0" startTime="0.1" endTime="0.5" startRot="0 0 0" endRot="0 -55 0"/>
            <part node="0>3|0|0|5|0|2|1|0" startTime="0.1" endTime="0.5" startRot="180 0 0" endRot="180 -40 0"/>
            <part node="0>3|0|0|5|0|2|1|0|0" startTime="0.1" endTime="0.5" startRot="0 0 0" endRot="0 -55 0"/>
            <part node="0>3|0|0|8|0"  startTime="1" endTime="8" startRot="0 -90 0" endRot="40 -90 0"/>
        </animation>
        <!-- tipping right -->
        <animation name="tipAnimationRight">
            <part node="0>3"          startTime="1.5" endTime="9"   startRot="0 0 0" endRot="0 0 40" />
            <part node="0>3|0|0|1|0" startTime="0.51" endTime="1.5" startRot="0 0 0" endRot="0 0 180"/>
            <part node="0>3|0|0|1|0" startTime="1.5" endTime="9" startRot="0 0 0" endRot="0 0 140"/>
            <part node="0>3|0|0|9|0"    startTime="1" endTime="8"   startRot="0 90 0" endRot="40 90 0" />
            <part node="0>3|0|0|5|0|3|1|0" startTime="0.1" endTime="0.5" startRot="0 0 -180" endRot="0 40 -180"/>
            <part node="0>3|0|0|5|0|3|1|0|0" startTime="0.1" endTime="0.5" startRot="0 0 0" endRot="0 -55 0"/>
            <part node="0>3|0|0|5|0|2|2|0" startTime="0.1" endTime="0.5" startRot="-180 0 -180" endRot="-180 -40 -180"/>
            <part node="0>3|0|0|5|0|2|2|0|0" startTime="0.1" endTime="0.5" startRot="0 0 0" endRot="0 -55 0"/>
        </animation>
		 <!-- autoload -->
		<animation name="MoveTriggerUp">
            <part node="0>11" startTime="0" endTime="0.001" startTrans="0 -30 0" endTrans="0 0 0" />
		</animation>
		<animation name="MoveTriggerDn">
            <part node="0>11" startTime="0" endTime="0.001" startTrans="0 0 0" endTrans="0 -30 0" />
		</animation>		
    </animations>

	<tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration />
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="0>3|0|0|16" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="0>3|0|0|16|5">
                    <tensionBelt startNode="0>3|0|0|16|0" endNode="0>3|0|0|16|0|0"/>
                    <tensionBelt startNode="0>3|0|0|16|1" endNode="0>3|0|0|16|1|0"/>
                    <tensionBelt startNode="0>3|0|0|16|2" endNode="0>3|0|0|16|2|0"/>
                    <tensionBelt startNode="0>3|0|0|16|3" endNode="0>3|0|0|16|3|0"/>
					<tensionBelt startNode="0>3|0|0|16|4" endNode="0>3|0|0|16|4|0"/>
                </tensionBelts>
            </tensionBeltsConfiguration>
        </tensionBeltsConfigurations>
    </tensionBelts>

	<moveTriggerUp animationName="MoveTriggerUp" />
	<moveTriggerDn animationName="MoveTriggerDn" />
	
	<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>

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