﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="forageWagon">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Strautmann Vitesse 5201</en>
        <de>Strautmann Vitesse 5201</de>
    </name>
    <typeDesc>$l10n_TypeDesc_ForageWagon</typeDesc>
    <filename>$data/vehicles/trailers/strautmann/strautmannTeraVitesse5201.i3d</filename>

    <size width="3.5" length="12.5"/>

    <powerConsumer ptoRpm="500" neededPtoPower="60"/>
    <speedLimit value="25" />

    <wheels autoRotateBackSpeed="1.0">
        <wheel  restLoad="2.5" repr="0>0" driveNode="0>0|0" radius="0.69" initialCompression="30" suspTravel="0.17" spring="25" damper="20" mass="0.265" steeringAxleScale="0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" />
        <wheel  restLoad="2.5" repr="0>1" driveNode="0>1|0" radius="0.69" initialCompression="30" suspTravel="0.17" spring="25" damper="20" mass="0.265" steeringAxleScale="0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" />
        <wheel  restLoad="2.5" repr="0>2"                   radius="0.69" initialCompression="30" suspTravel="0.17" spring="25" damper="20" mass="0.265" hasTyreTracks="true" tyreTrackAtlasIndex="2" />
        <wheel  restLoad="2.5" repr="0>3"                   radius="0.69" initialCompression="30" suspTravel="0.17" spring="25" damper="20" mass="0.265" hasTyreTracks="true" tyreTrackAtlasIndex="2" />
        <wheel  restLoad="2.5" repr="0>4" driveNode="0>4|0" radius="0.69" initialCompression="30" suspTravel="0.17" spring="25" damper="20" mass="0.265" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" />
        <wheel  restLoad="2.5" repr="0>5" driveNode="0>5|0" radius="0.69" initialCompression="30" suspTravel="0.17" spring="25" damper="20" mass="0.265" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="0>0|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>1|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>2"   filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>3"   filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="0>4|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>5|0" filename="$data/vehicles/wheels/trelleborg/twinRadial_710_50R26_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>14|1|0" filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>14|1|1" filename="$data/vehicles/wheels/trelleborg/trelleborgT510_16X6_50_8.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>5|1|0" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>5|1|1" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>22|0" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>22|1" filename="$data/vehicles/shared/wheelChock01.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>0.8</brakeForce>

    <steeringAxleAngleScale startSpeed="5" endSpeed="90" />

    <lightCoronas>
        <lightCorona index="0>16|1" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>16|2" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>16|3|0" />
        <turnSignalRight index="0>16|3|1" />
    </turnSignals>

    <reverseLights>
        <reverseLight index="0>16|4" />
    </reverseLights>

    <fillVolumes>
        <fillVolume index="0>15|0" scrollSpeedDischarge="0 0 0.4" scrollSpeedLoad="0 0 0.1" />
    </fillVolumes>

    <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>26|0" />
            <refNode index="0>26|1" />
            <node index="0>11" baseScale="1.8 0.1 1" transAxis="0 0 0" scaleAxis="0 1 0"/>
        </fillVolumeHeight>
    </fillVolumeHeights>

    <fillVolumeLoadInfo index="0>24" width="1.4" length="1.0" />

    <capacity>50000</capacity>

    <workAreas>
        <workArea startIndex="0>7|0" widthIndex="0>7|1" heightIndex="0>7|2" type="forageWagon" />
    </workAreas>

    <groundReferenceNodes>
        <groundReferenceNode index="0>13|0" threshold="0.7" />
    </groundReferenceNodes>

    <forageWgnSound file="$data/vehicles/trailers/forageWagon.wav" pitchOffset="1" volume="1.0" />
    <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|0" jointType="trailerLow" indexPTO="0>6|1" />
    </inputAttacherJoints>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>8" />
    <fillAutoAimTargetNode index="0>9" />
    <fillMassNode index="0>" />

    <tipReferencePoints>
        <tipReferencePoint index="0>10" width="2.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1.0" dischargeEndTime="25" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"           node="0>11" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="grass_windrow"   node="0>11" psRootNode="0|6" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="wheat_windrow"   node="0>11" psRootNode="0|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="barley_windrow"  node="0>11" psRootNode="0|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>23" width="1.4" length="1.0" alsoUseLoadInfoForDischarge="true" loadInfoFillFactor="0.98" loadInfoSizeScale="3 4" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
    </tipAnimations>

    <fillTypes fruitTypes="chaff grass_windrow wheat_windrow barley_windrow"/>

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/topDoor.png" axis="AXIS_FRONTLOADER_TOOL" />
        <mouseControl iconFilename="$dataS2/menu/moveControls/drawbar.png" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
        <!-- attacher -->
        <movingTool index="0>6" inputAttacherJoint="true" rotSpeed="20" rotAcceleration="40" rotMax="25" rotMin="0" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="0.6" rotationAxis="1"  >
            <dependentPart index="0>25|1" />
            <dependentPart index="0>6|2" />
        </movingTool>
        <!-- chaffLid -->
        <movingTool index="0>18" anchorActor="0" rotSpeed="40" rotAcceleration="160" rotMax="140" rotMin="0" axis="AXIS_FRONTLOADER_TOOL" invertAxis="true" mouseAxis="AXIS_FRONTLOADER_TOOL" invertMouseAxis="false" speedFactor="1" rotationAxis="1"  >
            <dependentPart index="0>19" />
        </movingTool>

        <movingTool index="0>16">
            <dependentPart index="0>17" />
        </movingTool>
        <movingTool index="0>13">
            <dependentPart index="0>14" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- attacher -->
        <movingPart index="0>25|1" referencePoint="0>6|3" referenceFrame="0>6|3">
            <translatingPart index="0>25|1|0" />
        </movingPart>
        <movingPart index="0>6|2" referencePoint="0>25|0" referenceFrame="0>25|0" scaleZ="true"/>

        <!-- pickup wheel arm -->
        <movingPart index="0>14" localReferencePoint="0>14|0" referencePoint="0>13|2" referenceFrame="0>">
            <dependentPart index="0>14|0" />
        </movingPart>
        <movingPart index="0>14|0" referencePoint="0>13|2" referenceFrame="0>13|2" scaleZ="true" />

        <!-- chaffLid hydraulics-->
        <movingPart index="0>19" referencePoint="0>18|0" referenceFrame="0>25|3">
            <translatingPart index="0>19|0" />
        </movingPart>

        <!-- door hydraulics-->
        <movingPart index="0>17" referencePoint="0>16|0" referenceFrame="0>16|0">
            <translatingPart index="0>17|0" />
        </movingPart>
    </movingParts>

    <animations>
        <!-- move support wheel down/up-->
        <animation name="moveSupport">
            <part node="0>5|1" startTime="0" endTime="0.05" visibility="false" />
            <part node="0>22" startTime="0" endTime="0.05" visibility="true" />
            <part node="0>5|1" startTime="0.05" endTime="0.1" visibility="true" />
            <part node="0>22" startTime="0.05" endTime="0.1" visibility="false" />
            <part node="0>12|0"   startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -180" />
            <part node="0>12|1" startTime="0" endTime="1" startTrans="0 0 0" endTrans="0 -0.655 0" />
        </animation>

        <!-- rotate pickup down/up -->
        <animation name="rotatePickup">
            <part node="0>13" startTime="0" duration="1.5" startRot="0 0 0" endRot="63 0 0" />
        </animation>

        <!-- backtipping -->
        <animation name="tipAnimationBack">
            <part node="0>16" startTime="0" endTime="4" startRot="0 0 0" endRot="75 0 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>13|0" rotSpeed="-400" type="forageWagon" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <turnedOnRotationNode index="0>25|2" rotSpeed="400" type="forageWagon" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </turnedOnRotationNodes>

    <speedRotatingParts>
        <speedRotatingPart index="0>13|1" radius="0.1" refNodeIndex="0" onlyActiveWhenLowered="true" rotateOnlyIfFillLevelIncreased="true" />
        <speedRotatingPart index="0>14|1" radius="0.2" refNodeIndex="0" onlyActiveWhenLowered="true" />
    </speedRotatingParts>

    <tipScrollerNodes>
        <tipScrollerNode index="0>21|1" shaderParameterName="scrollPosition" scrollSpeed="0.315" scrollLength="7.877" shaderParameterComponent="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <tipScrollerNode index="0>21|0" shaderParameterName="offsetUV"       scrollSpeed="0.2"                        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" />

    <pickupAnimation name="rotatePickup" lowerSpeed="2" liftSpeed="-1" />

    <tipRotationNodes>
        <tipRotationNode index="0>20|0" rotSpeed="880"  type="trailer" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <tipRotationNode index="0>20|1" rotSpeed="-880" type="trailer" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <tipRotationNode index="0>20|2" rotSpeed="880"  type="trailer" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </tipRotationNodes>

    <components count="1">
        <component1 centerOfMass="0 0.8 -1.14" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/implementSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/implementSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
