<?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) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>TP 580</name>
        <functions>
            <function>$l10n_function_baleTrailer</function>
        </functions>
        <image>store_tipper.png</image>
        <price>20500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>trailersChangingSystem</category>
        <shopTranslationOffset>0 0.037 0</shopTranslationOffset>
        <shopRotationOffset>0.003 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>323328</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>83712</indexBufferMemoryUsage>
        <textureMemoryUsage>655360</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_tipper</typeDesc>
        <filename>tipper.i3d</filename>
        <size width="5.51" length="8.89" height="4.17"/>
        <components maxMass="3500">
            <component centerOfMass="0 0.4 0" solverIterationCount="30" mass="2500"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <sounds volumeFactor="1.6"/>
        <mapHotspot type="TRAILER" />
    </base>

	<attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attachmentJoint" jointType="CT550Joint" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" upperRotationOffset="0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" delayedOnAttach="false"/>
    </attachable>

    <animations>
        <animation name="moveSupport">
            <part node="0>0|0|2|0|0"      startTime="0"     endTime="1"    startTrans="-0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|0|0|0"    startTime="0"     endTime="1"    startRot="82.867 0 0" endRot="0 0 0"/>
			
            <part node="0>0|0|2|1|0"      startTime="0"     endTime="1"    startTrans="0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|1|0|0"    startTime="0"     endTime="1"    startRot="82.867 0 0" endRot="0 0 0"/>
			
            <part node="0>0|0|2|2|0"      startTime="0"     endTime="1"    startTrans="0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|2|0|0"    startTime="0"     endTime="1"    startRot="-82.867 0 0" endRot="0 0 0"/>
			
            <part node="0>0|0|2|3|0"      startTime="0"     endTime="1"    startTrans="-0.811 0 0" endTrans="0 0 0"/>
            <part node="0>0|0|2|3|0|0"    startTime="0"     endTime="1"    startRot="-82.867 0 0" endRot="0 0 0"/>
			
            <part node="bolts"            startTime="0"     endTime="0.01" visibility="false" />
            <part node="bolts"            startTime="0.01"  endTime="0.02" visibility="true" />
            <part node="bolts"            startTime="0"     endTime="0.01" visibility="true" />
            <part node="bolts"            startTime="0.01"  endTime="0.02" visibility="false" />
            <part node="supports"         startTime="0"     endTime="0.01" visibility="false" />
            <part node="supports"         startTime="0.01"  endTime="0.02" visibility="true" />
        </animation>
        
		<animation name="tipAnimationBack">
            <part node="tipperBox"               startTime="0.0" endTime="14"  startRot="0 0 0"  endRot="-25 0 0" />
            <part node="doorBolts"               startTime="0.0" endTime="0.2" visibility="true" />
            <part node="doorBolts"               startTime="0.2" endTime="0.4" visibility="false" />
            <part node="doorBack"                startTime="2.5" endTime="14"  startRot="0 0 0" endRot="25 0 0" />
            <part node="particlesNodesBack"      startTime="0.0" endTime="14"  startRot="0 0 0"  endRot="25 0 0" />

            <sound template="hydraulicOpen06"       startTime="0.01"  endTime="13.99" direction="-1"    volumeScale="1.0" startPitchScale="0.5" endPitchScale="0.6" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicOpen02"       startTime="0.01"  endTime="13.99" direction="-1"    volumeScale="1.4" startPitchScale="1.4" endPitchScale="1.5" fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicOpen05"       startTime="0.01"  endTime="13.99" direction="1"     volumeScale="2.3" pitchScale="1.2"                          fadeIn="0.1" fadeOut="0.1"/>
            <sound template="hydraulicClose01"      startTime="0.01"  endTime="13.99" direction="1"     volumeScale="4.5" pitchScale="0.5"                          fadeIn="0.1" fadeOut="0.1"/>
            <sound template="metalLowVar2"          startTime="0.15"  direction="-1"  volumeScale="2.2" pitchScale="1.2"/>
            <sound template="metalClose"            startTime="0.15"  direction="-1"  volumeScale="1.2" pitchScale="0.8"/>
            <sound template="metalOpen"             startTime="0.15"  direction="1"   volumeScale="1.5" pitchScale="0.6"/>
            <sound template="metalLowVar2"          startTime="13.99" direction="1"   volumeScale="2.5" pitchScale="1.2"/>
            <sound template="metalClose"            startTime="13.99" direction="1"   volumeScale="1.2" pitchScale="0.7"/>
            <sound template="thudVar2"              startTime="13.9"  direction="-1"  volumeScale="1.4" pitchScale="0.7"/>
            <sound template="clackVar6"             startTime="13.99" direction="-1"  volumeScale="0.7" pitchScale="0.3"/>
            <sound template="hingeImp"              startTime="13.9"  direction="1"   volumeScale="0.5" pitchScale="0.8"/>
            <sound template="latchSmall"            startTime="0.01"  direction="0"   volumeScale="0.2" pitchScale="0.9"/>
            <sound template="clackVar2"             startTime="0.01"  direction="0"   volumeScale="1.0" pitchScale="1.7"/>
            <sound template="metalOpen"             startTime="2.35"  direction="1"   volumeScale="2.5" pitchScale="0.7"/>
            <sound template="metalClose"            startTime="0.01"  direction="-1"  volumeScale="1.5" pitchScale="0.7"/>
            <sound template="trailerCloseImpact_01" startTime="0.01"  direction="-1"  volumeScale="1.5" pitchScale="0.7"/>
            <sound template="hingeMedium"           startTime="2.1"   direction="1"   volumeScale="1.4" pitchScale="0.8"/>
            <sound template="cylinderPunch"         startTime="0.01"  direction="0"/>
            <sound template="cylinderPunch"         startTime="13.99" direction="1"/>
            <sound template="hingeMedium02"         startTime="3.15"  direction="-1"  volumeScale="2.2" pitchScale="0.5"/>
            <sound template="hingeMedium02"         startTime="10.15" direction="-1"  volumeScale="2.5" pitchScale="0.35"/>
            <sound template="hingeMedium03"         startTime="6"     direction="1"   volumeScale="4"   pitchScale="0.7"/>
            <sound template="hingeSmall02"          startTime="13.0"  direction="1"   volumeScale="2.0" pitchScale="0.45" fadeIn="0.3" fadeOut="1"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="tipperBox" playSound="true" >
              <dependentPart node="hydraulicCylindar" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulicCylindar" referencePoint="hydraulicCylindarPunchRef" referenceFrame="hydraulicCylindarPunchRef" limitedAxis="1" divideTranslatingDistance="false">
                <translatingPart node="hydraulicPunch01" maxZTrans="0.345"/>
                <translatingPart node="hydraulicPunch02" maxZTrans="0.355"/>
                <translatingPart node="hydraulicPunch03" maxZTrans="0.359"/>
                <translatingPart node="hydraulicPunch04" maxZTrans="0.365"/>
                <translatingPart node="hydraulicPunch05" maxZTrans="0.365"/>
                <translatingPart node="hydraulicPunch06" maxZTrans="0.368"/>
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="hydraulicCylindar" actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch01"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="hydraulicCylindar" actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch02"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="hydraulicCylindar" actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch03"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="hydraulicCylindar" actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch04"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="hydraulicCylindar" actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch05"/>
            <actionSound template="cylinderPunch" pitchScale="0.7" linkNode="hydraulicCylindar" actionNames="TRANSLATING_END_NEG" nodes="hydraulicPunch06"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="BULK" capacity="58000" allowAILoading="true">
                        <exactFillRootNode node="exactFillRootNode" />
                        <autoAimTargetNode node="fillAutoAimTarget" startZ="2.1" endZ="-1.45" invert="false" startPercentage="25"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.12" maxAllowedHeapAngle="13" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="unloadInfoBack" width="2" length="1.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration name="$l10n_configuration_valueDefault" price="0">
                <trailer>
                    <tipSide name="$l10n_info_tipSideBack" dischargeNodeIndex="1">
                        <animation name="tipAnimationBack" speedScale="1.15" startTipTime="0.02"/>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <dischargeable>
        <dischargeNode node="dischargeNodeBack" emptySpeed="1500" fillUnitIndex="1" unloadInfoIndex="1" allowAIDischarge="true">
            <info width="1.5" length="1.0" />
            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="effectParticleBack" effectClass="ParticleEffect" materialType="unloadingParticle" />
                    <effectNode effectNode="effectGrainBack" materialType="unloading" materialTypeId="1" fadeTime="2.5" extraDistanceNode="dischargeNodeBack" extraDistance="0"/>
                </effectNode>
                <effectNode effectNode="effectSmokeBack" materialType="unloadingSmoke"  materialTypeId="1" fadeTime="2.5"/>
            </effects>
        </dischargeNode>
    </dischargeable>

	<baseColorConfigurations useDefaultColors="true">
		<baseColorConfiguration materialTemplateName="CT_MAINCOLOR" price="100"/>
		<material materialSlotName="TP580_mainColor_slot"/>
    </baseColorConfigurations>
	
	<designColorConfigurations useDefaultColors="true" title="$l10n_frameColor_configMat">
		<designColorConfiguration materialTemplateName="CT_FRAMECOLOR" price="100"/>
		<material materialSlotName="TP580_frameColor_slot"/>
    </designColorConfigurations>
	
	<foliageBending>
        <bendingNode minX="-1.887" maxX="1.887" minZ="-4.224" maxZ="4.644" yOffset="0.6" />
    </foliageBending>

    <ai>
        <agentAttachment jointNode="attachmentJoint" width="5.51" length="8.72" height="3.67" lengthOffset="-0.5"/>
    </ai>

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

    <i3dMappings>
        <!-- other -->
		<i3dMapping id="FT300_main_component1" node="0>" />
        <i3dMapping id="attachmentJoint" node="0>0|0|0" />
        <i3dMapping id="supports" node="0>0|0|2" />
        <i3dMapping id="bolts" node="0>0|0|1" />
		<!-- tipper -->
        <i3dMapping id="exactFillRootNode" node="0>0|1|1|3|0" />
        <i3dMapping id="fillAutoAimTarget" node="0>0|1|1|3|1" />
        <i3dMapping id="fillVolume" node="0>0|1|1|3|2" />
        <i3dMapping id="effectParticleBack" node="0>0|1|1|2|0|1|0" />
        <i3dMapping id="effectGrainBack" node="0>0|1|1|2|0|0|0" />
        <i3dMapping id="effectSmokeBack" node="0>0|1|1|2|0|0|1" />
        <i3dMapping id="dischargeNodeBack" node="0>0|1|1|4|0" />
        <i3dMapping id="unloadInfoBack" node="0>0|1|1|4|1" />
        <i3dMapping id="particlesNodesBack" node="0>0|1|1|2|0" />
		<!-- movingParts -->
        <i3dMapping id="tipperBox" node="0>0|1|1" />
        <i3dMapping id="hydraulicCylindar" node="0>0|1|0" />
        <i3dMapping id="hydraulicCylindarPunchRef" node="0>0|1|1|5" />
        <i3dMapping id="hydraulicPunch01" node="0>0|1|0|1" />
        <i3dMapping id="hydraulicPunch02" node="0>0|1|0|1|0" />
        <i3dMapping id="hydraulicPunch03" node="0>0|1|0|1|0|0" />
        <i3dMapping id="hydraulicPunch04" node="0>0|1|0|1|0|0|0" />
        <i3dMapping id="hydraulicPunch05" node="0>0|1|0|1|0|0|0|0" />
        <i3dMapping id="hydraulicPunch06" node="0>0|1|0|1|0|0|0|0|0" />
        <i3dMapping id="doorBack" node="0>0|1|1|1" />
        <i3dMapping id="doorBolts" node="0>0|1|1|1|1" />
    </i3dMappings>
</vehicle>
