﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mixerWagon" 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>TrailedLine 4.0 Premium 2218‑22</name>
        <specs>
            <neededPower>100</neededPower>
        </specs>
        <functions>
            <function>$l10n_function_feeder</function>
        </functions>
        <image>$data/vehicles/siloking/tl4Premium/store_tl4Premium.png</image>
        <price>45000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>SILOKING</brand>
        <category>animals</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>-0.079 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1866496</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>315648</indexBufferMemoryUsage>
        <textureMemoryUsage>2752512</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mixerWagon</typeDesc>
        <filename>$data/vehicles/siloking/tl4Premium/tl4Premium.i3d</filename>
        <size width="3.7" length="8.5"/>
        <components maxMass="17500">
            <component centerOfMass="0 0.6 -1.05" solverIterationCount="10" mass="6850" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0" brand="CONTINENTAL" saveId="CONTINENTAL_DEFAULT">
                <wheels>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHT3/435_65R19_5.xml" isLeft="true" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="3.2" repr="wheelLeft"  forcePointRatio="0.3" initialCompression="25" suspTravel="0.12" spring="100" damper="65" yOffset="-0.01" />
                        <wheelChock parkingNode="wheelChock01_02" scale="0.85 0.85 0.85"/>
                        <wheelChock parkingNode="wheelChock01_01" isInverted="true" scale="0.85 0.85 0.85"/>
                    </wheel>
                    <wheel filename="$data/shared/wheels/tires/continental/contiHybridHT3/435_65R19_5.xml" isLeft="false" hasTireTracks="true" hasParticles="true" >
                        <physics restLoad="3.2" repr="wheelRight" forcePointRatio="0.3" initialCompression="25" suspTravel="0.12" spring="100" damper="65" yOffset="-0.01" />
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>

        <rimColor material="18">SHARED_WHITE1</rimColor>

        <hubs>
            <color0>SILOKING_BLUE1</color0>
            <color1>SHARED_GREY3</color1>
            <hub linkNode="wheelLeft"  filename="$data/shared/wheels/hubs/hub_n10_4.xml" isLeft="true"  scale="0.25 0.25 0.25" />
            <hub linkNode="wheelRight" filename="$data/shared/wheels/hubs/hub_n10_4.xml" isLeft="false" scale="0.25 0.25 0.25" />
        </hubs>
    </wheels>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="trailer" attacherHeight="1.0"/>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
        <brakeForce force="1.4" maxForce="3" maxForceMass="17000"/>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="electric" node="electric" length="1.4" diameter="0.008" straighteningFactor="1.5" >
            <objectChange node="electric_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" length="1.4" diameter="0.02" straighteningFactor="1.5" >
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="1.4" diameter="0.02" straighteningFactor="1.5" >
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|1" linkNode="electric_connector"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_connector"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="0"   linkNode="wheelChockSupport01_02" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
        <dynamicallyLoadedPart node="0"   linkNode="wheelChockSupport01_01" filename="$data/shared/assets/wheelChocks/wheelChockSupport01.i3d"/>
    </dynamicallyLoadedParts>

    <powerTakeOffs>
        <input inputAttacherJointIndices="1" inputNode="ptoInput" detachNode="ptoDetached" aboveAttacher="false" color="SHARED_BLACK1" decalColor="WALTERSCHEID_YELLOW1"/>
        <local startNode="ptoStart01" endNode="ptoEnd01" color="SHARED_BLACK1" decalColor="WALTERSCHEID_YELLOW1"/>
        <local startNode="ptoStart02" endNode="ptoEnd02" color="SHARED_BLACK1" decalColor="WALTERSCHEID_YELLOW1"/>
    </powerTakeOffs>

    <powerConsumer ptoRpm="470" neededMinPtoPower="45" neededMaxPtoPower="45" />

    <lights>
        <sharedLight linkNode="rearLight33_left"   filename="$data/shared/assets/lights/lizard/rearLight33_left.xml" />
        <sharedLight linkNode="rearLight33_right"  filename="$data/shared/assets/lights/lizard/rearLight33_right.xml" />
        <sharedLight linkNode="plateNumberLight01" filename="$data/shared/assets/lights/lizard/plateNumberLight01.xml" />

        <sharedLight linkNode="yellowRound_01"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_02"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_03"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_04"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_05"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_06"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_07"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />
        <sharedLight linkNode="yellowRound_08"     filename="$data/shared/assets/reflectors/lizard/yellowRound_01.xml" />

        <realLights>
            <high>
                <light node="backLightsHigh"        lightTypes="0"/>
                <light node="licensePlateLightHigh" lightTypes="0"/>
                <brakeLight node="backLightsHigh" />
                <turnLightLeft node="turnLightLeftBack" />
                <turnLightRight node="turnLightRightBack" />
                <reverseLight node="reverseLightHigh" />
            </high>
        </realLights>
    </lights>

    <licensePlates>
        <licensePlate node="licensePlateBack" position="BACK" preferedType="SQUARISH" placementArea="0.07 0.17 0.13 0.17"/>
    </licensePlates>

    <animations>
        <animation name="tipLeft">
            <part node="doorFront" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 0 0.665"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="0.99" volumeScale="0.6" pitchScale="1.4" />
            <sound template="clackVar6" startTime="0.99" direction="1" volumeScale="0.5" pitchScale="1.2" />
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="0.6" pitchScale="1.1" />
        </animation>
        <animation name="tipRight">
            <part node="doorFront" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 0 0.665"/>

            <sound template="defaultHydraulicSound" startTime="0.01" endTime="0.99" volumeScale="0.6" pitchScale="1.4" />
            <sound template="clackVar6" startTime="0.99" direction="1" volumeScale="0.5" pitchScale="1.2" />
            <sound template="clackVar6" startTime="0.01" direction="-1" volumeScale="0.6" pitchScale="1.1" />
        </animation>
        <animation name="moveSupport">
            <part node="supportArm"      startTime="0" endTime="0.5" startTrans="0 0 0" endTrans="0 -0.386 0" />
            <part node="supportArmCrank" startTime="0" endTime="0.5" startRot="0 0 0" endRot="-670 0 0" />
            <part node="handbrakePart01" startTime="0" endTime="0.5" startRot="0 0 0" endRot="570 0 0" />
            <part node="handbrakePart02" startTime="0" endTime="0.5" startTrans="0.479 0.508 -0.020" endTrans="0.545 0.508 -0.020" />
            <part node="handbrakePart06" startTime="0" endTime="0.5" startRot="0 0 0" endRot="40 0 0" />

            <sound template="clackVar6" startTime="0.1" direction="-1" volumeScale="1.5" pitchScale="0.8" linkNode="attacherJoint"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="handbrakePart02">
                <dependentPart node="handbrakePart03" />
            </movingTool>

            <movingTool node="handbrakePart06">
                <dependentPart node="handbrakePart04" />
                <dependentPart node="handbrakePart05" />
                <dependentPart node="handbrakePart07" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="handbrakePart03" referencePoint="handbrakePart03Ref" referenceFrame="handbrakePart03Ref" scaleZ="true" />
            <movingPart node="handbrakePart04" referencePoint="handbrakePart04Ref" referenceFrame="handbrakePart04Ref" scaleZ="true" />
            <movingPart node="handbrakePart05" referencePoint="handbrakePart05Ref" referenceFrame="handbrakePart05Ref" scaleZ="true" />
            <movingPart node="handbrakePart07" referencePoint="handbrakePart07Ref" referenceFrame="handbrakePart07Ref">
                <translatingPart node="handbrakePart07Punch" />
            </movingPart>
        </movingParts>

        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>"/>
        </sounds>
    </cylindered>

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit shopDisplayUnit="CUBICMETER" fillTypeCategories="MIXERWAGON" capacity="22000" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.05" maxAllowedHeapAngle="10" fillUnitIndex="1" maxSubDivEdgeLength="1.5" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
            <unloadInfo>
                <node node="unloadNode" width="2" length="4.0" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable>
        <dischargeNode node="dischargeNodeLeft" emptySpeed="1570" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.0" length="0.5"/>
            <effects>
                <effectNode effectClass="TypedMotionPathEffect" effectType="MIXERWAGON" linkNode="unloadEffectFrontLeft">
                    <motionPathEffect textureFilename="$data/vehicles/siloking/tl4Premium/unloadEffectFrontLeftArray.dds" numRows="8" rowLength="15" delay="0"/>
                </effectNode>
            </effects>
            <dischargeStateSound template="mixerLoop" fadeIn="1.0" fadeOut="3.0"/>
        </dischargeNode>
        <dischargeNode node="dischargeNodeRight" emptySpeed="1570" fillUnitIndex="1" unloadInfoIndex="1">
            <info width="1.0" length="0.5"/>
            <effects>
                <effectNode effectClass="TypedMotionPathEffect" effectType="MIXERWAGON" linkNode="unloadEffectFrontRight">
                    <motionPathEffect textureFilename="$data/vehicles/siloking/tl4Premium/unloadEffectFrontRightArray.dds" numRows="8" rowLength="15" delay="0"/>
                </effectNode>
            </effects>
            <dischargeStateSound template="mixerLoop" fadeIn="1.0" fadeOut="3.0"/>
        </dischargeNode>
    </dischargeable>

    <trailer>
        <trailerConfigurations>
            <trailerConfiguration name="$l10n_configuration_valueDefault" price="0">
                <trailer>
                    <tipSide name="$l10n_info_tipSideLeft" dischargeNodeIndex="1">
                        <animation name="tipLeft" speedScale="1.0" />
                        <animationNodes>
                            <animationNode node="beltUvScroll" rotSpeed="-100" rotAxis="1" shaderComponentScale="0 -1 0 0" shaderParameterName="offsetUV" />
                        </animationNodes>
                    </tipSide>
                    <tipSide name="$l10n_info_tipSideRight" dischargeNodeIndex="2">
                        <animation name="tipRight" speedScale="1.0" />
                        <animationNodes>
                            <animationNode node="beltUvScroll" rotSpeed="-100" rotAxis="1" shaderComponentScale="0 1 0 0" shaderParameterName="offsetUV" />
                        </animationNodes>
                    </tipSide>
                </trailer>
            </trailerConfiguration>
        </trailerConfigurations>
    </trailer>

    <mixerWagon fillUnitIndex="1" recipe="FORAGE">
        <baleTriggers>
            <baleTrigger node="baleTrigger" pickupSpeed="500"/>
        </baleTriggers>

        <mixAnimationNodes>
            <animationNode node="mixerFront" rotSpeed="-150"  rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2" />
            <animationNode node="mixerBack"  rotSpeed="-150"  rotAxis="2" turnOnFadeTime="1" turnOffFadeTime="2" />
            <animationNode node="ptoPart"    rotSpeed="-1000" rotAxis="3" turnOnFadeTime="1" turnOffFadeTime="2" />
            <animationNode node="ptoPart"    rotSpeed="-1000" rotAxis="3" turnOnFadeTime="1" turnOffFadeTime="2" />
        </mixAnimationNodes>
    </mixerWagon>

    <turnOnVehicle>
        <sounds>
            <work  template="mixerHeaderLoop"  linkNode="0>" />
            <start template="mixerHeaderStart" linkNode="0>" />
            <stop  template="mixerHeaderStop"  linkNode="0>" />
        </sounds>
    </turnOnVehicle>

    <tipOccluder>
        <occlusionArea start="tipOcclusionAreaStart" width="tipOcclusionAreaWidth" height="tipOcclusionAreaHeight" />
    </tipOccluder>

    <ai>
        <agentAttachment jointNode="attacherJoint" rotCenterWheelIndices="1 2" width="2.6" height="3.5" length="6.5" lengthOffset="0.9"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-3.5" maxZ="2.6" yOffset="0.5" />
        <bendingNode minX="-0.3" maxX="0.3" minZ="2.6" maxZ="3.65" yOffset="0.8" />
    </foliageBending>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>

    <baseMaterial>
        <material name="tl4Premium_mat" baseNode="tl4Premium_vis">
            <shaderParameter name="colorMat0" value="SILOKING_RED1"/>
            <shaderParameter name="colorMat1" value="SILOKING_BLUE1"/>
        </material>
    </baseMaterial>

    <i3dMappings>
        <i3dMapping id="tl4Premium_main_component1" node="0>" />
        <i3dMapping id="tl4Premium_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="ptoInput" node="0>0|0|1|0" />
        <i3dMapping id="ptoDetached" node="0>0|0|1|1" />
        <i3dMapping id="ptoStart01" node="0>0|0|1|2" />
        <i3dMapping id="ptoEnd01" node="0>0|0|1|3" />
        <i3dMapping id="ptoStart02" node="0>0|0|1|4" />
        <i3dMapping id="ptoEnd02" node="0>0|0|1|5" />
        <i3dMapping id="wheelChockSupport01_01" node="0>0|0|2|0" />
        <i3dMapping id="wheelChockSupport01_02" node="0>0|0|2|1" />
        <i3dMapping id="wheelChock01_01" node="0>0|0|2|2" />
        <i3dMapping id="wheelChock01_02" node="0>0|0|2|3" />
        <i3dMapping id="supportArm" node="0>0|0|3|0|0" />
        <i3dMapping id="supportArmCrank" node="0>0|0|3|1|0" />
        <i3dMapping id="handbrakePart01" node="0>0|0|4|0" />
        <i3dMapping id="handbrakePart02" node="0>0|0|4|1" />
        <i3dMapping id="handbrakePart03Ref" node="0>0|0|4|1|0" />
        <i3dMapping id="handbrakePart03" node="0>0|0|4|2" />
        <i3dMapping id="handbrakePart04" node="0>0|0|4|3" />
        <i3dMapping id="handbrakePart05" node="0>0|0|4|4" />
        <i3dMapping id="handbrakePart06" node="0>0|0|4|5" />
        <i3dMapping id="handbrakePart04Ref" node="0>0|0|4|5|0" />
        <i3dMapping id="handbrakePart05Ref" node="0>0|0|4|5|1" />
        <i3dMapping id="handbrakePart07Ref" node="0>0|0|4|5|2" />
        <i3dMapping id="handbrakePart07" node="0>0|0|4|6" />
        <i3dMapping id="handbrakePart07Punch" node="0>0|0|4|6|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|5|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|5|0|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|5|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|5|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|5|1|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|5|1|0|0" />
        <i3dMapping id="electric" node="0>0|0|5|2" />
        <i3dMapping id="electric_detached" node="0>0|0|5|2|0" />
        <i3dMapping id="electric_connector" node="0>0|0|5|2|0|0" />
        <i3dMapping id="wheelLeft" node="0>0|1|0" />
        <i3dMapping id="wheelRight" node="0>0|1|1" />
        <i3dMapping id="rearLight33_left" node="0>0|2|0|0" />
        <i3dMapping id="rearLight33_right" node="0>0|2|0|1" />
        <i3dMapping id="yellowRound_01" node="0>0|2|0|2" />
        <i3dMapping id="yellowRound_02" node="0>0|2|0|3" />
        <i3dMapping id="yellowRound_03" node="0>0|2|0|4" />
        <i3dMapping id="yellowRound_04" node="0>0|2|0|5" />
        <i3dMapping id="yellowRound_05" node="0>0|2|0|6" />
        <i3dMapping id="yellowRound_06" node="0>0|2|0|7" />
        <i3dMapping id="yellowRound_07" node="0>0|2|0|8" />
        <i3dMapping id="yellowRound_08" node="0>0|2|0|9" />
        <i3dMapping id="plateNumberLight01" node="0>0|2|0|10" />
        <i3dMapping id="licensePlateLightHigh" node="0>0|2|1|0" />
        <i3dMapping id="backLightsHigh" node="0>0|2|2|0" />
        <i3dMapping id="turnLightLeftBack" node="0>0|2|3|0" />
        <i3dMapping id="turnLightRightBack" node="0>0|2|3|1" />
        <i3dMapping id="reverseLightHigh" node="0>0|2|4|0" />
        <i3dMapping id="doorFront" node="0>0|3|0|0" />
        <i3dMapping id="mixerFront" node="0>0|3|1" />
        <i3dMapping id="mixerBack" node="0>0|3|2" />
        <i3dMapping id="ptoPart" node="0>0|3|3" />
        <i3dMapping id="beltUvScroll" node="0>0|3|4" />
        <i3dMapping id="fillVolume" node="0>0|4|0" />
        <i3dMapping id="baleTrigger" node="0>0|4|1" />
        <i3dMapping id="exactFillRootNode" node="0>0|4|2" />
        <i3dMapping id="unloadNode" node="0>0|5|0" />
        <i3dMapping id="dischargeNodeLeft" node="0>0|5|1" />
        <i3dMapping id="dischargeNodeRight" node="0>0|5|2" />
        <i3dMapping id="unloadEffectFrontLeft" node="0>0|6|0" />
        <i3dMapping id="unloadEffectFrontRight" node="0>0|6|1" />
        <i3dMapping id="tipOcclusionAreaStart" node="0>0|7|0" />
        <i3dMapping id="tipOcclusionAreaWidth" node="0>0|7|1" />
        <i3dMapping id="tipOcclusionAreaHeight" node="0>0|7|2" />
        <i3dMapping id="licensePlateBack" node="0>0|8" />
    </i3dMappings>
</vehicle>
