﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer_mouseControlled">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Bergmann HTW 65</en>
        <de>Bergmann HTW 65</de>
    </name>
    <typeDesc>$l10n_TypeDesc_ForageWagon</typeDesc>
    <filename>data/vehicles/trailers/bergmann/bergmannHTW65.i3d</filename>

    <size width="3.5" length="12.5"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="1.6" repr="0>0|0" driveNode="0>0|0|0" radius="0.677" initialCompression="20" suspTravel="0.2" spring="25" damper="80" mass="0.2475" steeringAxleScale="0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" steeringNode="0>27" steeringNodeMinTransX="0.06" steeringNodeMaxTransX="-0.06"/>
        <wheel  restLoad="1.6" repr="0>1|0" driveNode="0>1|0|0" radius="0.677" initialCompression="20" suspTravel="0.2" spring="25" damper="80" mass="0.2475" steeringAxleScale="0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" />
        <wheel  restLoad="1.5" repr="0>2"                       radius="0.677" initialCompression="30" suspTravel="0.2" spring="25" damper="80" mass="0.2475" hasTyreTracks="true" tyreTrackAtlasIndex="2"/>
        <wheel  restLoad="1.5" repr="0>3"                       radius="0.677" initialCompression="30" suspTravel="0.2" spring="25" damper="80" mass="0.2475" hasTyreTracks="true" tyreTrackAtlasIndex="2"/>
        <wheel  restLoad="1.4" repr="0>4|0" driveNode="0>4|0|0" radius="0.677" initialCompression="40" suspTravel="0.2" spring="25" damper="80" mass="0.2475" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" steeringNode="0>28" steeringNodeMinTransX="0.13" steeringNodeMaxTransX="-0.13"/>
        <wheel  restLoad="1.4" repr="0>5|0" driveNode="0>5|0|0" radius="0.677" initialCompression="40" suspTravel="0.2" spring="25" damper="80" mass="0.2475" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="2|0" linkNode="0>0|0|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="2|1" linkNode="0>1|0|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="2|0" linkNode="0>2"     filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="2|1" linkNode="0>3"     filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="2|0" linkNode="0>4|0|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="2|1" linkNode="0>5|0|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>1.3</brakeForce>

    <steeringAxleAngleScale startSpeed="5" endSpeed="90" />

    <lightCoronas>
        <lightCorona index="0>9" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>10" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>11|0" />
        <turnSignalRight index="0>11|1" />
    </turnSignals>

    <fillVolumes>
        <fillVolume index="0>12|0" scrollSpeedDischarge="0 0 0.4" />
    </fillVolumes>

    <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>33|0" />
            <refNode index="0>33|1" />
            <node index="0>8" baseScale="1.8 1 1" transAxis="0 0 0" scaleAxis="0 1 0" />
        </fillVolumeHeight>
    </fillVolumeHeights>

    <fillVolumeLoadInfo index="0>32" width="1.4" length="1.0" />

    <capacity>55500</capacity>

    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />

    <inputAttacherJoints>
        <inputAttacherJoint index="0>6" jointType="trailerLow" indexPTO="0>25" />
    </inputAttacherJoints>

    <attacherJoints>
        <attacherJoint index="0>34" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" />
    </attacherJoints>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>13" />
    <fillAutoAimTargetNode index="0>14" />
    <fillMassNode index="0>" />

    <tipReferencePoints>
        <tipReferencePoint index="0>7" width="2.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1.0" dischargeEndTime="25" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"           node="0>8" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips"       node="0>8" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="grass_windrow"   node="0>8" psRootNode="0|6" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>31" width="1.8" length="1.0" alsoUseLoadInfoForDischarge="true" loadInfoFillFactor="0.98" loadInfoSizeScale="3 4" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
    </tipAnimations>

    <fillTypes fruitTypes="chaff grass_windrow woodChips"/>

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/topDoor.png" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
        <movingTool index="0>20" rotSpeed="50" rotAcceleration="160" rotMax="90" rotMin="0" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="0.3" rotationAxis="1" translationAxis="2" >
            <dependentPart index="0>20|0" />
        </movingTool>
        <movingTool index="0>16" >
            <dependentPart index="0>17" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>17" referencePoint="0>16|0" referenceFrame="0>18">
            <translatingPart index="0>17|0" />
            <dependentPart index="0>19" />
        </movingPart>
        <movingPart index="0>19" referencePoint="0>17|1" referenceFrame="0>17|1" scaleZ="true" />

        <movingPart index="0>20|0" referencePoint="0>21" referenceFrame="0>21">
            <translatingPart index="0>20|0|0" />
            <dependentPart index="0>22" />
        </movingPart>
        <movingPart index="0>22" referencePoint="0>20|0|1" referenceFrame="0>20|0|1" scaleZ="true" />

        <movingPart index="0>27|0" referencePoint="0>0|0|1" referenceFrame="0>" isActiveDirty="true" playSound="false" >
            <dependentPart index="0>29" />
            <dependentPart index="0>27|1" />
        </movingPart>
        <movingPart index="0>29" referencePoint="0>27|0|0" referenceFrame="0>27|0|0" playSound="false">
            <translatingPart index="0>29|0" />
        </movingPart>
        <movingPart index="0>27|1" referencePoint="0>1|0|1" referenceFrame="0>" scaleZ="true" playSound="false"/>

        <movingPart index="0>28|0" referencePoint="0>4|0|1" referenceFrame="0>" isActiveDirty="true" playSound="false" >
            <dependentPart index="0>30" />
            <dependentPart index="0>28|1" />
        </movingPart>
        <movingPart index="0>30" referencePoint="0>28|0|0" referenceFrame="0>28|0|0" playSound="false">
            <translatingPart index="0>30|0" />
        </movingPart>
        <movingPart index="0>28|1" referencePoint="0>5|0|1" referenceFrame="0>" scaleZ="true" playSound="false"/>
    </movingParts>

    <animations>
        <!-- move support wheel down/up-->
        <animation name="moveSupport">
            <part node="0>15|0"   startTime="0" endTime="1" startRot="-40 0 0"   endRot="0 0 0" />
            <part node="0>15|0|0" startTime="0" endTime="1" startRot="40 0 0"    endRot="0 0 0" />
            <part node="0>15|1"   startTime="0" endTime="1" startTrans="0 0.3 0" endTrans="0 -0.511 0" />
        </animation>

        <!-- backtipping -->
        <animation name="tipAnimationBack">
            <part node="0>16" startTime="0" endTime="4" startRot="0 0 0" endRot="60 0 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <tipRotationNodes>
        <tipRotationNode index="0>23|0" rotSpeed="880" type="trailer" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <tipRotationNode index="0>23|1" rotSpeed="880" type="trailer" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </tipRotationNodes>

    <tipScrollerNodes>
        <tipScrollerNode index="0>24" shaderParameterName="offsetUV" scrollSpeed="0.1" shaderParameterComponent="1" turnOnFadeTime="1" turnOffFadeTime="1" />
    </tipScrollerNodes>

    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="5" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="6" />
    </driveGroundParticleSystems>

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="1">
        <component1 centerOfMass="0 0.72 -0.65" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0">
        <attacherJoint position="0.5 0" rotation="0" invertX="false" />
    </schemaOverlay>
</vehicle>
