<?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 Viceucelova</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>KorbaVic.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/korbaVicka.i3d</filename>
        <size width="4" length="8" lengthOffset="0.75" />
        <components>
            <component centerOfMass="0 1.45 0" solverIterationCount="10" mass="1231" />
        </components>
        <schemaOverlay attacherJointPosition="0 0">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
    </base>

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


    <lights>
        <defaultLights>
			<defaultLight shaderNode="0>4|7|0|0" lightTypes="0"/>
			<defaultLight shaderNode="0>4|7|1|0" lightTypes="0"/>
            <defaultLight shaderNode="0>4|7|2|0" lightTypes="0"/>
            <defaultLight shaderNode="0>4|7|3|0" lightTypes="0"/>
        </defaultLights>

        <turnLights>
            <turnLightLeft shaderNode="0>4|7|0|2" />
            <turnLightRight shaderNode="0>4|7|1|2" />
        </turnLights>

        <brakeLights>
            <brakeLight shaderNode="0>4|7|0|1" />
            <brakeLight shaderNode="0>4|7|1|1" />
        </brakeLights>
    </lights>

   <animations>     
   <animation name="tipAnimationBack">   
            <!-- doors-->            
            <part node="0>1" startTime="1" endTime="3" startRot="0 0 0" endRot="0 100 0"/>
			<part node="0>2" startTime="1" endTime="3" startRot="0 0 0" endRot="0 -100 0"/>
			<part node="0>2|1" startTime="0" endTime="1" startTrans="-0.8 -1.24 -0.06" endTrans="-0.3 -1.24 -0.06"/> 
   </animation>
        <animation name="moveSupport">
            <part node="0>5|0|0|0" startTime="0" endTime="0.1" visibility="false"/>
            <part node="0>5|0|0|0" startTime="0.1" endTime="0.4" visibility="true"/>
             <part node="0>5|0|0|1" startTime="0" endTime="0.05" visibility="false" />
	     <part node="0>5|0|0|1" startTime="0.05" endTime="0.1" visibility="true" />
            <part node="0>5|1" startTime="0" endTime="0.1" startTrans="-1 2.6 0" endTrans="-1.75 1.2 0"/>
            <part node="0>5|2" startTime="0" endTime="0.1" startTrans="1 2.6 0" endTrans="1.75 1.2 0"/>
     
        </animation>	
    </animations>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="Bulk" capacity="30000" >
                        <exactFillRootNode node="0>4|6" />
                        <autoAimTargetNode node="0>4|5" startZ="2" endZ="-2" invert="false" fillUnitIndex="1" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

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

        <unloadInfos>
            <unloadInfo fillVolumeIndex="1" >
                <node node="0>4|3" 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.5" />
						 <animationNodes>
                            <animationNode class="ScrollingAnimation" node="0>4|2|0" scrollSpeed="0.3" turnOnFadeTime="0.1" turnOffFadeTime="0.1"/>
							<animationNode class="ScrollingAnimation" node="0>4|2|1" scrollSpeed="0.3" turnOnFadeTime="0.1" turnOffFadeTime="0.1"/>
                        </animationNodes>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

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


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