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

    <storeData>
        <name>Korba Valnik</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>KorbaValnik.dds</image>
        <price>5000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>trailers</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>2951560</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>858738</indexBufferMemoryUsage>
        <textureMemoryUsage>29622744</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>Korby/korbaValnik.i3d</filename>
        <size width="4" length="8" lengthOffset="0.75" />
        <components>
            <component centerOfMass="0 0.8 -0.95" solverIterationCount="10" mass="1000" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>


    <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>
    </configurationSets>


    <attachable>
		<inputAttacherJoints>
            <inputAttacherJoint node="0>5" jointType="semitrailer" upperRotationOffset="0" lowerRotationOffset="0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
    </attachable>

   <animations>     
		<animation name="tipAnimationBack">
            <part node="0>0"      startTime="1" endTime="5"   startRot="0 0 0"  endRot="-22 0 0" />
            <part node="0>0|0|0"  startTime="1"   endTime="5"   startRot="0 0 0"  endRot="25 0 0" />
        </animation>

        <animation name="moveSupport">
            <part node="0>4|0|0" startTime="0" endTime="0.1" visibility="false"/>
            <part node="0>4|0|0" startTime="0.1" endTime="0.4" visibility="true"/>
             <part node="0>4|0|1" startTime="0" endTime="0.05" visibility="false" />
	     <part node="0>4|0|1" startTime="0.05" endTime="0.1" visibility="true" />
            <part node="0>2" startTime="0" endTime="0.1" startTrans="1.4 2 0" endTrans="1.75 0.65 0"/>
            <part node="0>3" startTime="0" endTime="0.1" startTrans="-1.4 2 0" endTrans="-1.75 0.65 0"/>
     
        </animation>	
    </animations>

    <cylindered>
    <movingTools>
      
        <movingTool node="0>0">
            <dependentPart node="0>1|0"/>
        </movingTool>       
    </movingTools>
    <movingParts>
        <movingPart node="0>1|0" referencePoint="0>0|0|9" referenceFrame="0>1" >
            <translatingPart node="0>1|0|0" />
            <translatingPart node="0>1|0|0|0" />
            <translatingPart node="0>1|0|0|0|0" />
        </movingPart>		
    </movingParts>

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueTrailer0L" price="0" >
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="0" />
                </fillUnits>
            </fillUnitConfiguration>

            <fillUnitConfiguration name="$l10n_configuration_capacityX" price="0" params="15000" >
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="bulk" capacity="15000" >
                        <exactFillRootNode node="0>0|0|6" />
                        <autoAimTargetNode node="0>0|0|7" startZ="3.1" endZ="-1.2" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>

        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|1" maxDelta="0.1" fillUnitIndex="1" maxAllowedHeapAngle="10"/>         
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo fillVolumeIndex="1" >
                <node node="0>0|0|8" width="1.5" length="0.4" priority="2" minHeight="0.4" />
            </unloadInfo>
        </unloadInfos>

    </fillVolume>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.0" />
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <dischargeable>
        <dischargeNode node="0>0|0|4|0" emptySpeed="3460" fillUnitIndex="1" unloadInfoIndex="1" >
            <info width="2.5" length="0.5" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|0|5|0" effectClass="ParticleEffect" extraDistance="0.5"/>
                    <effectNode effectNode="0>0|0|5|1" materialType="unloading" materialTypeId="1" fadeTime="0.5" extraDistanceNode="0>0|0|4|0"/>
                </effectNode>
                <effectNode effectNode="0>0|0|5|2" materialType="smoke"     materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

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

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

    <foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-3.9" maxZ="4.0 " yOffset="0.6" />
        <bendingNode minX="-1.5" maxX="1.5" minZ="-5.5" maxZ="-3.9 " yOffset="1.2" />
    </foliageBending>



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

</vehicle>