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

    <storeData>
        <name>Tender 10T</name>
        <specs>
            <combination>Truck</combination>
            <fillTypes>seeds fertilizer</fillTypes>
        </specs>
        <functions>
            <function>$l10n_function_seedTender</function>
        </functions>
        <image>store/store_SeedTenderBundle.png</image>
        <price>20000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ADAMS</brand>
        <category>augerWagons</category>
        <shopTranslationOffset>0 -0.1 0</shopTranslationOffset>
        <shopRotationOffset>6 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_augerWagon</typeDesc>
        <filename>seedTender.i3d</filename>
        <size width="3" length="7" lengthOffset="1"/>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="1000"/>
        </components>
        <schemaOverlay attacherJointPosition="0 -1">
            <default name="DEFAULT_IMPLEMENT"/>
            <selected name="DEFAULT_IMPLEMENT_SELECTED"/>
        </schemaOverlay>
		<objectChanges>
			<objectChange node="body1" scaleActive="0.001 0.001 0.001" />
        </objectChanges>
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJointSemiTrailer" jointType="semitrailer" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" upperRotationOffset="0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0">
                <additionalObjects>
                    <additionalObject node="attacherMAN" attacherVehiclePath="data/vehicles/man/tgs18500/tgs18500.xml"/>
                    <additionalObject node="attacherTatra" attacherVehiclePath="data/vehicles/tatra/tatraPhoenix/tatraPhoenix.xml"/>
                    <additionalObject node="attacherLizardTruckS" attacherVehiclePath="data/vehicles/lizard/truckS/truckS.xml"/>
                    <additionalObject node="attacherLizardTruckM" attacherVehiclePath="data/vehicles/lizard/truckM/truckM.xml"/>
                    <additionalObject node="attacherLizardTruckL" attacherVehiclePath="data/vehicles/lizard/truckL/truckL.xml"/>
                </additionalObjects>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport"/>
    </attachable>

    <animations>
        <animation name="moveSupport">
            <part node="attachers" startTime="0.98" endTime="0.99" visibility="true"/>
            <part node="attachers" startTime="0.99" endTime="1.0" visibility="false"/>
        </animation>
        <animation name="pipeAnimation">
            <part node="pipe" startTime="0" endTime="8" startRot="-0.7 0 0" endRot="-146.75 0 0"/>
            <part node="body" startTime="0" endTime="8" startRot="0 0 0" endRot="-25 0 0"/>
        </animation>
    </animations>

    <cylindered>
        <movingTools>
            <movingTool node="pipe">
                <dependentPart node="hydraulicPipe"/>
            </movingTool>
            <movingTool node="body">
                <dependentPart node="hydraulicBody"/>
            </movingTool>
            <movingTool node="doorLeft">
                <dependentPart node="doorLeftArm"/>
            </movingTool>
            <movingTool node="doorRight">
                <dependentPart node="doorRightArm"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulicPipe" referencePoint="hydraulicPipeRef" referenceFrame="hydraulicPipeRefFrame" playSound="true">
                <translatingPart node="hydraulicPipePunch"/>
            </movingPart>
            <movingPart node="hydraulicBody" referencePoint="hydraulicBodyRef" referenceFrame="hydraulicBodyRef" playSound="true">
                <translatingPart node="hydraulicBodyPunch1"/>
                <translatingPart node="hydraulicBodyPunch2"/>
                <translatingPart node="hydraulicBodyPunch3"/>
            </movingPart>
            <movingPart node="doorLeftArm" referencePoint="doorLeftArmRef" localReferencePoint="doorLeftArmPart" referenceFrame="horschSeedTender_main_component1" playSound="true">
                <dependentPart node="doorLeftArmPart"/>
                <dependentPart node="hydraulicDoorLeft"/>
            </movingPart>
            <movingPart node="doorLeftArmPart" referencePoint="doorLeftArmRef" referenceFrame="doorLeftArmRef" playSound="true"/>
            <movingPart node="hydraulicDoorLeft" referencePoint="hydraulicDoorLeftRef" referenceFrame="hydraulicDoorRefFrame" playSound="true">
                <translatingPart node="hydraulicDoorLeftPunch"/>
            </movingPart>
            <movingPart node="doorRightArm" referencePoint="doorRightArmRef" localReferencePoint="doorRightArmPart" referenceFrame="horschSeedTender_main_component1" playSound="true">
                <dependentPart node="doorRightArmPart"/>
                <dependentPart node="hydraulicDoorRight"/>
            </movingPart>
            <movingPart node="doorRightArmPart" referencePoint="doorRightArmRef" referenceFrame="doorRightArmRef" playSound="true"/>
            <movingPart node="hydraulicDoorRight" referencePoint="hydraulicDoorRightRef" referenceFrame="hydraulicDoorRefFrame" playSound="true">
                <translatingPart node="hydraulicDoorRightPunch"/>
            </movingPart>
        </movingParts>

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

    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="AUGERWAGON" capacity="5000">
                        <exactFillRootNode node="exactFillRootNode"/>
                    </fillUnit>
                    <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="AUGERWAGON" capacity="5000">
                        <exactFillRootNode node="exactFillRootNode2"/>
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolumeLeft" fillUnitIndex="1" maxDelta="0.04"/>
                    <volume node="fillVolumeRight" fillUnitIndex="2" maxDelta="0.04"/>
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <unloadInfos>
           <unloadInfo fillVolumeIndex="1" >
                <node node="unloadInfo" width="0.3" length="0.3" />
            </unloadInfo>
            <unloadInfo fillVolumeIndex="2" >
                <node node="unloadInfo" width="0.3" length="0.3" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="raycastNode" emptySpeed="200" fillUnitIndex="1" unloadInfoIndex="1">
            <raycast extraDistance="-1" maxDistance="6"/>
            <effects>
                <effectNode effectClass="MorphPositionEffect" effectNode="beltMove01" materialType="belt" materialTypeId="1" delay="0" fadeTime="0.5" speed="0.9" scrollLength="1.5" scrollSpeed="2"/>
                <effectNode effectClass="MorphPositionEffect" effectNode="moveLeft" materialType="belt" materialTypeId="1" delay="0" fadeTime="0.5" speed="0.9" scrollLength="1.5" scrollSpeed="2"/>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect01" materialType="pipe" materialTypeId="1" maxBending="0.5" delay="0.05" shapeScaleSpread="1 1 0 0"/>
                <effectNode effectNode="smoke1" materialType="smoke" materialTypeId="1" alignToWorldY="true" delay="0.05"/>
            </effects>
        </dischargeNode>
        <dischargeNode node="raycastNode1" emptySpeed="200" fillUnitIndex="2" unloadInfoIndex="2">
            <raycast extraDistance="-1" maxDistance="6"/>
            <effects>
                <effectNode effectClass="MorphPositionEffect" effectNode="beltMove02" materialType="belt" materialTypeId="1" delay="0" fadeTime="0.5" speed="0.9" scrollLength="1.5" scrollSpeed="2"/>
                <effectNode effectClass="MorphPositionEffect" effectNode="moveRight" materialType="belt" materialTypeId="1" delay="0" fadeTime="0.5" speed="0.9" scrollLength="1.5" scrollSpeed="2"/>
                <effectNode effectClass="PipeEffect" effectNode="pipeEffect02" materialType="pipe" materialTypeId="1" maxBending="0.5" delay="0.05" shapeScaleSpread="1 1 0 0"/>
                <effectNode effectNode="smoke1" materialType="smoke" materialTypeId="1" alignToWorldY="true" delay="0.05"/>
            </effects>
        </dischargeNode>
    </dischargeable>

    <pipe unloadInfoIndex="1">
      <pipeNodes>
          <pipeNode node="doorLeft" translationSpeeds="0 0.2 0">
              <state1 translation="0.125 0 0" />
              <state2 translation="0.125 0.18 0"/>
              <state3 translation="0.125 0 0"/>
          </pipeNode>
          <pipeNode node="doorRight" translationSpeeds="0 0.2 0">
              <state1 translation="-0.125 0 0" />
              <state2 translation="-0.125 0 0"/>
              <state3 translation="-0.125 0.18 0"/>
          </pipeNode>
      </pipeNodes>
        <states num="3" unloading="2 3">
            <state stateIndex="2" dischargeNodeIndex="1"/>
            <state stateIndex="3" dischargeNodeIndex="2"/>
        </states>

        <animation name="pipeAnimation" speedScale="1" />
        <unloadingTriggers>
            <unloadingTrigger node="trailerTigger" />
        </unloadingTriggers>
        <animationNodes>
            <animationNode node="adamsSeedTenderBelt" class="ScrollingAnimation" scrollSpeed="-1" scrollLength="10" shaderParameterName="offsetUV" shaderParameterComponent="2" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>
        </animationNodes>
    </pipe>

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

    <smartAttach trigger="smartAttachTrigger" jointType="semitrailer" distanceThreshold="5"/>

    <foliageBending>
        <bendingNode minX="-1.2" maxX="1.2" minZ="-1.9" maxZ="2" yOffset="0.5" />
    </foliageBending>

    <i3dMappings>
        <i3dMapping id="adamsSeedTender_main_component1" node="0>" />
        <i3dMapping id="attacherJointSemiTrailer" node="0>0|0" />
        <i3dMapping id="body" node="0>0|1" />
		<i3dMapping id="body1" node="0>0|11" />
        <i3dMapping id="hydraulicBody" node="0>0|1|0" />
        <i3dMapping id="hydraulicBodyPunch1" node="0>0|1|0|0" />
        <i3dMapping id="hydraulicBodyPunch2" node="0>0|1|0|0|0" />
        <i3dMapping id="hydraulicBodyPunch3" node="0>0|1|0|0|0|0" />
        <i3dMapping id="fillVolumeLeft" node="0>0|1|1|0|0" />
        <i3dMapping id="unloadInfo" node="0>0|1|1|0|1" />
        <i3dMapping id="fillVolumeRight" node="0>0|1|1|1|0" />
        <i3dMapping id="exactFillRootNode" node="0>0|1|2" />
        <i3dMapping id="exactFillRootNode2" node="0>0|1|3" />
        <i3dMapping id="doorLeft" node="0>0|1|4|0" />
        <i3dMapping id="doorLeftArmRef" node="0>0|1|4|0|0" />
        <i3dMapping id="doorRight" node="0>0|1|4|1" />
        <i3dMapping id="doorRightArmRef" node="0>0|1|4|1|0" />
        <i3dMapping id="doorLeftArm" node="0>0|1|4|2" />
        <i3dMapping id="doorLeftArmPart" node="0>0|1|4|2|0" />
        <i3dMapping id="hydraulicDoorLeftRef" node="0>0|1|4|2|1" />
        <i3dMapping id="doorRightArm" node="0>0|1|4|3" />
        <i3dMapping id="doorRightArmPart" node="0>0|1|4|3|0" />
        <i3dMapping id="hydraulicDoorRightRef" node="0>0|1|4|3|1" />
        <i3dMapping id="hydraulicDoorLeft" node="0>0|1|4|4" />
        <i3dMapping id="hydraulicDoorLeftPunch" node="0>0|1|4|4|0" />
        <i3dMapping id="hydraulicDoorRight" node="0>0|1|4|5" />
        <i3dMapping id="hydraulicDoorRightPunch" node="0>0|1|4|5|0" />
        <i3dMapping id="hydraulicDoorRefFrame" node="0>0|1|4|6" />
        <i3dMapping id="hydraulicBodyRef" node="0>0|2" />
        <i3dMapping id="pipe" node="0>0|3" />
        <i3dMapping id="hydraulicPipeRef" node="0>0|3|0" />
        <i3dMapping id="raycastNode" node="0>0|3|1" />
        <i3dMapping id="adamsSeedTenderBelt" node="0>0|3|2" />
        <i3dMapping id="pipeEffect01" node="0>0|3|3|0" />
        <i3dMapping id="pipeEffect02" node="0>0|3|3|1" />
        <i3dMapping id="beltMove01" node="0>0|3|3|2" />
        <i3dMapping id="beltMove02" node="0>0|3|3|3" />
        <i3dMapping id="smoke1" node="0>0|3|3|5" />
        <i3dMapping id="raycastNode1" node="0>0|3|7" />
        <i3dMapping id="hydraulicPipe" node="0>0|4" />
        <i3dMapping id="hydraulicPipePunch" node="0>0|4|0" />
        <i3dMapping id="hydraulicPipeRefFrame" node="0>0|5" />
        <i3dMapping id="move1TG" node="0>0|6|2|0" />
        <i3dMapping id="moveLeft" node="0>0|6|2|0|0" />
        <i3dMapping id="move3TG" node="0>0|6|2|1" />
        <i3dMapping id="moveRight" node="0>0|6|2|1|0" />
        <i3dMapping id="attachers" node="0>0|7" />
        <i3dMapping id="attacherMAN" node="0>0|7|0" />
        <i3dMapping id="attacherTatra" node="0>0|7|1" />
        <i3dMapping id="attacherLizardTruckS" node="0>0|7|2" />
        <i3dMapping id="attacherLizardTruckM" node="0>0|7|3" />
        <i3dMapping id="attacherLizardTruckL" node="0>0|7|4" />
        <i3dMapping id="trailerTigger" node="0>0|8" />
        <i3dMapping id="unloadTrigger" node="0>0|9" />
        <i3dMapping id="smartAttachTrigger" node="0>0|10" />
    </i3dMappings>
</vehicle>
