<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="trailer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) EmikMODEL</annotation>

    <storeData>
        <name>Korba S1 - rám S1</name>
        <functions>
            <function>$l10n_function_tipper</function>
        </functions>
        <image>Korba_S1/store_Korba_S1.png</image>
        <price>15900</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>TATRY</brand>
        <category>trailersChangingSystem</category>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>Korba_S1/Korba_S1.i3d</filename>
        <size width="3.5" length="5" lengthOffset="4"/>
        <components>
            <component centerOfMass="0 1.6 0" solverIterationCount="10" mass="1100"/>
        </components>
        <schemaOverlay name="IMPLEMENT" attacherJointPosition="0 0"/>
		<mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.5">
                    <wheel isLeft="true">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|4|0" forcePointRatio="0.2" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.1" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel isLeft="false">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|5|0" forcePointRatio="0.2" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.1" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel isLeft="true">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|6|0" forcePointRatio="0.2" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.1" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                    <wheel isLeft="false">
                        <physics rotSpeed="0" restLoad="1.4" repr="0>0|7|0" forcePointRatio="0.2" radius="0.2" width="0.005" mass="0.15" initialCompression="80" suspTravel="0.1" spring="30" damper="50" frictionScale="3"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
    </wheels>

    <attachable>
        <airConsumer usage="0.25"/>
        <inputAttacherJoints>
            <inputAttacherJoint node="0>0|0" jointType="trailerLow" upperRotationOffset="0"><!--jointType="trailerLow" -->
				<distanceToGround lower="1.1" upper="1.1"/>
			</inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <animations>
        <animation name="tipAnimationZadni">
            <part endRot="-68 0 0" endTime="8" node="0>0|1|0" startRot="0 0 0" startTime="0"/>
            <part endRot="60 0 0" endTime="7" node="0>0|1|0|5" startRot="0 0 0" startTime="2.5"/>
            <part node="0>0|1|0|2|0|0|0"         startTime="0.1" endTime="9"  startRot="0 0 0"  endRot="45 0 0" /><!-- effectNodesBack -->
			
			<sound template="hydraulicClose02"      startTime="1.0"   endTime="11.99" direction="0"     volumeScale="2" pitchScale="1.5" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicClose01"      startTime="1.0"   endTime="11.99" direction="0"     volumeScale="3" pitchScale="0.8" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="metalImpLow"           startTime="11.99" direction="1"   volumeScale="1"   pitchScale="0.8"/>
            <sound template="trailerCloseImpact_01" startTime="11.99" direction="1"   volumeScale="0.8" pitchScale="1.2"/>
            <sound template="metalImpLow"           startTime="1.01"  direction="-1"  volumeScale="1"   pitchScale="1.1"/>
            <sound template="trailerCloseImpact_01" startTime="1.01"  direction="-1"  volumeScale="0.8" pitchScale="1"/>
            <sound template="metalImpHigh01"        startTime="1.01"  direction="-1"  volumeScale="0.6" pitchScale="1"/>
            <sound template="cylinderPunch"         startTime="1.01"  direction="-1"  volumeScale="0.6" pitchScale="0.8"/>
        </animation>
        <animation name="moveSupport">
            <part endTime="0.05" node="0>0|8" startTime="0" visibility="false"/>
            <part endTime="0.1" node="0>0|8" startTime="0.05" visibility="true"/>
            <part endTime="0.05" node="0>0|2" startTime="0" visibility="true"/>
            <part endTime="0.1" node="0>0|2" startTime="0.05" visibility="false"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|4" startTime="0" startTrans="-0.4 1.5 0"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|5" startTime="0" startTrans="0.4 1.5 0"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|6" startTime="0" startTrans="-0.4 1.5 0"/>
            <part endTime="0.2" endTrans="0 0 0" node="0>0|7" startTime="0" startTrans="0.4 1.5 0"/>
			<part endTime="0.3" endTrans="0 0.0 0" node="0>0|8|1|0" startTime="0.0" startTrans="-0.374 0.755 0"/><!-- SupportCol -->
            <part endTime="0.3" endTrans="-3.507 0 0" node="0>0|8|1|0|0" startTime="0.0" startTrans="-2.694 0 0"/><!-- SupportCol2-->
			
			<sound template="slideOpen"    startTime="0.01" endTime="1"    direction="0"     volumeScale="2" pitchScale="2"/>
            <sound template="metalClose"   startTime="0.1"  direction="-1" volumeScale="2"   pitchScale="2"/>
            <sound template="hingeImp"     startTime="0.1"  direction="-1" volumeScale="0.6" pitchScale="1.2"/>
            <sound template="vibratingImp" startTime="0.1"  direction="-1" volumeScale="0.8" pitchScale="1.2"/>
        </animation>
    </animations>

    <cylindered>
        <movingParts>
            <movingPart node="0>0|2|0" referenceFrame="0>0|1|0|4|0" referencePoint="0>0|1|0|4|0">
                <translatingPart node="0>0|2|0|0"/>
                <translatingPart node="0>0|2|0|0|0"/>
                <translatingPart node="0>0|2|0|0|0|0"/>
            </movingPart>
            <movingPart node="0>0|2|1" referenceFrame="0>0|1|0|4|1" referencePoint="0>0|1|0|4|1">
                <translatingPart node="0>0|2|1|0"/>
                <translatingPart node="0>0|2|1|0|0"/>
                <translatingPart node="0>0|2|1|0|0|0"/>
            </movingPart>
            <movingPart node="0>0|2|2" referenceFrame="0>0|1|0|4|2" referencePoint="0>0|1|0|4|2"/>
        </movingParts>
        <movingTools>
            <movingTool node="0>0|1|0">
                <dependentPart node="0>0|2|0"/>
                <dependentPart node="0>0|2|1"/>
                <dependentPart node="0>0|2|2"/>
            </movingTool>
            <movingTool node="0>0|4" wheelIndices="1"/>
            <movingTool node="0>0|5" wheelIndices="2"/>
            <movingTool node="0>0|6" wheelIndices="3"/>
            <movingTool node="0>0|7" wheelIndices="4"/>
        </movingTools>
		<sounds>
            <actionSound template="hydraulicClose01" volumeScale="0.7"  pitchScale="2.5" linkNode="0>0|1|0" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="0>0|1|0" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="vibratingImp"     volumeScale=" 0.5" pitchScale="2"   linkNode="0>0|1|0" actionNames="TOOL_MOVE_END_POS_LIMIT TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|1|0"/>
            <actionSound template="grabImp"          volumeScale="0.5"  pitchScale="1"   linkNode="0>0|1|0" actionNames="TOOL_MOVE_END_POS_LIMIT TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|1|0"/>
            <actionSound template="cylinderPunch"    volumeScale="0.2"  pitchScale="3"   linkNode="0>0|1|0" actionNames="TOOL_MOVE_END_POS_LIMIT TOOL_MOVE_END_NEG_LIMIT" nodes="0>0|1|0"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="15000" fillTypeCategories="BULK" unitTextOverride="$l10n_unit_literShort">
                        <exactFillRootNode node="0>0|9|0"/>
                        <autoAimTargetNode node="0>0|9|1" startZ="1.6" endZ="-1.4" invert="false" startPercentage="30"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="0>0|1|0|3|0" fillUnitIndex="1" maxDelta="0.16" maxAllowedHeapAngle="20"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>
        <unloadInfos>
            <unloadInfo>
                <node node="0>0|1|0|0|0" width="1.0" length="4.5"/><!-- width="2.5" length="1.5" -->
            </unloadInfo>
        </unloadInfos>
        <heightNodes>
            <heightNode>
                <refNode node="0>0|1|0|1|0"/>
                <refNode node="0>0|1|0|1|1"/>
                <node node="0>0|1|0|2|0|0|0|0" baseScale="1.07 1 1" scaleAxis="0 0 0" transAxis="0 0 0"/>
				<node node="0>0|1|0|2|0|0|1|0"     baseScale="1 1 1" scaleAxis="0 0.4 0" transAxis="0 0 0"/>
            </heightNode>
        </heightNodes>
    </fillVolume>
	
	<dischargeable>
        <dischargeNode node="0>0|3|0" emptySpeed="1400"  fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="2.4" length="0.5" zOffset="0.5"/>
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="0>0|1|0|2|0|0|1|0" effectClass="ParticleEffect" materialType="unloadingParticle" emitCountScale="4"/><!-- emitter Shape Back -->
                    <effectNode effectNode="0>0|1|0|2|0|0|0|0" materialType="unloading" fadeTime="0.5" extraDistanceNode="0>0|3|0" extraDistance="0.5"/><!--grain effect back -->
                </effectNode>
                <effectNode effectNode="0>0|1|0|2|0|0|0|1" materialType="unloadingSmoke" fadeTime="0.5" /><!-- smoke eeffect -->
            </effects>
        </dischargeNode>
	</dischargeable>

    <!--<dischargeable>
        <dischargeNode node="0>0|3|0" emptySpeed="1800" fillUnitIndex="1" unloadInfoIndex="1">
            <effects>
                <effectNode effectNode="0>0|1|0|2|0|1" materialType="smoke" materialTypeId="1" fadeTime="0.5" extraDistanceNode="0>0|3|0" extraDistance="0.5"/>
				<effectNode extraDistance="0.5" extraDistanceNode="0>0|3|0" fadeTime="0.5" materialType="smoke" materialTypeId="1"/>
            </effects>
            <info length="0.5" width="2.4" zOffset="0.5"/>
        </dischargeNode>
        <dischargeableConfigurations>
            <dischargeableConfiguration>
                <dischargeNode>
                    <effects>
                        <effectNode effectNode="0>0|1|0|2|0|1" effectClass="TipEffect"/>
                    </effects>
                </dischargeNode>
                <dischargeNode>
                    <effects>
                        <effectNode materialType="smoke" materialTypeId="1" fadeTime="0.5"/>
                    </effects>
                </dischargeNode>
            </dischargeableConfiguration>
        </dischargeableConfigurations>
    </dischargeable>-->

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1" unloadInfoIndex="1">
                        <animation name="tipAnimationZadni" speedScale="1.0" startTipTime="0.36"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
	
	<ai>
		<agentAttachment jointNode="0>0|0" width="2.7" height="3.3" length="9.3" lengthOffset="-2.2" heightOffset="0.45"/>
	</ai>
	
	<foliageBending>
        <bendingNode wheelIndices="1 2 3 4" minZ="-4.65" maxZ="3.2" yOffset="0.6"/>
        <bendingNode minX="-0.3" maxX="0.3" minZ="3.2" maxZ="4.5" yOffset="0.6"/>
    </foliageBending>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
    
	<baseColorConfigurations title="$l10n_configuration_baseColor" price="1000" useDefaultColors="true">
        <material materialSlotName="base_color_mat" materialTemplateUseColorOnly="true" />
		<baseColorConfiguration color="0.7 0 0" price="0"/>
        <baseColorConfiguration color="0.9 0 0" price="1000"/>
    </baseColorConfigurations>
    <!--Non converted elements, might require manual conversion or are obsolete:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle>
    <baseColorConfigurations icon="$dataS2/menu/hud/configurations/config_color.png">
        <baseColorConfiguration icon="$dataS2/menu/hud/configurations/config_color.png"/>
    </baseColorConfigurations>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint lowerRotLimit="0 0 0" allowsJointLimitMovement="false" canTurnOnImplement="false"/>
        </inputAttacherJoints>
    </attachable>

    <dischargeable>
        <dischargeNode>
            <effects>
                <effectNode effectNode="0>0|1|0|2|0|1" materialType="smoke" materialTypeId="1" fadeTime="0.5" extraDistanceNode="0>0|3|0" extraDistance="0.5"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration>
                <trailer>
                    <tipSide unloadInfoIndex="1"/>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>
</vehicle>
-->
</vehicle>
