<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="forageWagon">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <typeDesc>$l10n_typeDesc_forageWagon</typeDesc>
    <filename>poettingerEuroboss370H.i3d</filename>
    <size width="3.5" length="9"/>
    <powerConsumer ptoRpm="500" neededPtoPower="20"/>
    <speedLimit value="25"/>
    <wheels autoRotateBackSpeed="2.0">
        <wheel repr="0>0" radius="0.4" restLoad="1.4" initialCompression="40" suspTravel="0.12" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="3" frictionScale="1.5" mass="0.11" width="0.5" hasParticles="true"/>
        <wheel repr="0>1" driveNode="0>1|0" radius="0.4" restLoad="1.4" initialCompression="40" suspTravel="0.12" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="3" frictionScale="1.5" mass="0.11" width="0.5" hasParticles="true"/>
        <wheel repr="0>27" radius="0.4" restLoad="1.4" initialCompression="40" suspTravel="0.12" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="3" frictionScale="1.5" mass="0.11" width="0.5" hasParticles="true"/>
        <wheel repr="0>28" radius="0.4" restLoad="1.4" initialCompression="40" suspTravel="0.12" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="3" frictionScale="1.5" mass="0.11" width="0.5" hasParticles="true"/>
    </wheels>
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="0>1|1|0" filename="$data/shared/vehicleParts/wheelChock02.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="0>1|1|1" filename="$data/shared/vehicleParts/wheelChock02.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="0>15|0" filename="$data/shared/vehicleParts/wheelChock02.i3d"/>
        <dynamicallyLoadedPart node="0" linkNode="0>15|1" filename="$data/shared/vehicleParts/wheelChock02.i3d"/>
    </dynamicallyLoadedParts>
    <brakeForce>0.5</brakeForce>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light decoration="0>7|0|0" lightTypes="0"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light decoration="0>7|0|0" lightTypes="0"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>7|0|1"/>
    </brakeLights>
    <reverseLights>
        <reverseLight index="0>7|0|2"/>
    </reverseLights>
    <turnLights>
        <turnLightLeft decoration="0>7|0|3|0"/>
        <turnLightRight decoration="0>7|0|3|1"/>
    </turnLights>
    <fillVolumes>
        <fillVolume index="0>5|0" maxAllowedHeapAngle="40" scrollSpeedDischarge="0 0 0.3" scrollSpeedLoad="0 0 0.08"/>
    </fillVolumes>
    <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>23|0"/>
            <refNode index="0>23|1"/>
            <node index="0>14" baseScale="1.5 0.1 1" transAxis="0 0 0" scaleAxis="0 1 0"/>
        </fillVolumeHeight>
    </fillVolumeHeights>
    <fillVolumeLoadInfo index="0>22" width="1.4" length="1.0"/>
    <fillUnits>
        <fillUnit unit="$l10n_unit_literShort" fillTypeCategories="straw" capacity="28000"/>
    </fillUnits>
    <workAreas>
        <workArea startIndex="0>4|0" widthIndex="0>4|1" heightIndex="0>4|2" type="forageWagon"/>
    </workAreas>
    <groundReferenceNodes>
        <groundReferenceNode index="0>10|1" threshold="1"/>
    </groundReferenceNodes>
    <forageWgnSound file="$data/vehicles/trailers/forageWagon.wav" pitchOffset="1" volume="1.0"/>
    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="1.0" volume="1.0"/>
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5"/>
    <inputAttacherJoints>
        <inputAttacherJoint index="0>20|2|1" jointType="trailer" attacherHeight="0.944" ptoInputNode="0>17"/>
    </inputAttacherJoints>
    <tipReferencePoints>
        <tipReferencePoint index="0>13" width="2.5"/>
    </tipReferencePoints>
    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1.0" dischargeEndTime="25">
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff" node="0>14" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d"/>
                <dischargeParticleSystem type="grass_windrow" node="0>14" psRootNode="0|6" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d"/>
                <dischargeParticleSystem type="wheat_windrow" node="0>14" psRootNode="0|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d"/>
                <dischargeParticleSystem type="barley_windrow" node="0>14" psRootNode="0|5" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d"/>
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>21" width="1.4" length="1.0" alsoUseLoadInfoForDischarge="true" loadInfoFillFactor="0.98" loadInfoSizeScale="2 3"/>
            <fillVolumeHeight index="1"/>
        </tipAnimation>
    </tipAnimations>
    <fillRootNode index="0>"/>
    <exactFillRootNode index="0>18"/>
    <fillAutoAimTargetNode index="0>19"/>
    <fillMassNode index="0>"/>
    <movingTools>
        <movingTool index="0>9">
            <dependentPart index="0>10"/>
            <dependentPart index="0>11"/>
            <dependentPart index="0>12"/>
        </movingTool>
        <movingTool index="0>6">
            <dependentPart index="0>7"/>
            <dependentPart index="0>8"/>
        </movingTool>
        <movingTool index="0>20|2">
            <controls axis="AXIS_FRONTLOADER_ARM" icon="$dataS2/menu/moveControls/drawbar.png" invertAxis="true" invertMouseAxis="false" speedFactor="0.6"/>
            <rotation rotSpeed="20" rotAcceleration="40" rotMax="25" rotMin="0" rotationAxis="1"/>
            <inputAttacherJoint>true</inputAttacherJoint>
            <dependentPart index="0>20|2|0"/>
        </movingTool>
    </movingTools>
    <movingParts>
        <!-- pickup wheel arm -->
        <movingPart index="0>10" localReferencePoint="0>10|0" referencePoint="0>9|2" referenceFrame="0>">
            <dependentPart index="0>10|0"/>
        </movingPart>
        <movingPart index="0>10|0" referencePoint="0>9|2" referenceFrame="0>9|2" scaleZ="true"/>
        <movingPart index="0>11" referencePoint="0>9|3" referenceFrame="0>9|3">
            <translatingPart index="0>11|0"/>
        </movingPart>
        <movingPart index="0>12" referencePoint="0>9|4" referenceFrame="0>9|4" scaleZ="true"/>
        <!-- door -->
        <movingPart index="0>7" localReferencePoint="0>7|0" referencePoint="0>6|0" referenceFrame="0>">
            <dependentPart index="0>7|0"/>
            <dependentPart index="0>7|0|5"/>
        </movingPart>
        <movingPart index="0>7|0" referencePoint="0>6|0" referenceFrame="0>6|0" scaleZ="true"/>
        <movingPart index="0>7|0|5" referencePoint="0>20|0" referenceFrame="0>20|0" scaleZ="true"/>
        <movingPart index="0>8" referencePoint="0>7|1" referenceFrame="0>7|1">
            <translatingPart index="0>8|0"/>
        </movingPart>
        <!-- attacher -->
        <movingPart index="0>20|2|0" referencePoint="0>20|3" referenceFrame="0>20|3" scaleZ="true"/>
    </movingParts>
    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>1|1" startTime="0" endTime="0.05" visibility="false"/>
            <part node="0>15" startTime="0" endTime="0.05" visibility="true"/>
            <part node="0>1|1" startTime="0.05" endTime="0.1" visibility="true"/>
            <part node="0>15" startTime="0.05" endTime="0.1" visibility="false"/>
            <part node="0>3|0" startTime="0" duration="0.6" startTrans="0 0 -0.266" endTrans="0 0 0.08"/>
            <part node="0>3|1" startTime="0" duration="0.6" startRot="0 0 -720" endRot="0 0 0"/>
        </animation>
        <!-- rotate pickup down/up -->
        <animation name="rotatePickup">
            <part node="0>9" startTime="0" duration="1.5" startRot="0 0 0" endRot="26 0 0"/>
        </animation>
        <!-- backtipping -->
        <animation name="tipAnimationBack">
            <part node="0>6" startTime="0" endTime="4" startRot="0 0 0" endRot="50 0 0"/>
        </animation>
    </animations>
    <support animationName="moveSupport"/>
    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>9|0" rotSpeed="-400" type="forageWagon" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </turnedOnRotationNodes>
    <speedRotatingParts>
        <speedRotatingPart index="0>10|1" radius="0.2" refNodeIndex="0" onlyActiveWhenLowered="true"/>
        <speedRotatingPart index="0>9|1" radius="0.4" refNodeIndex="0" rotateOnlyIfFillLevelIncreased="true" onlyActiveWhenLowered="true"/>
    </speedRotatingParts>
    <tipScrollerNodes>
        <tipScrollerNode index="0>16|0" shaderParameterName="scrollPosition" scrollSpeed="-0.19" scrollLength="4.60" shaderParameterComponent="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
        <tipScrollerNode index="0>16|1" shaderParameterName="offsetUV" scrollSpeed="1" shaderParameterComponent="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </tipScrollerNodes>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    <pickupAnimation name="rotatePickup" lowerSpeed="2" liftSpeed="-1"/>
    <components count="1">
        <component1 centerOfMass="0 0.52 -0.2" 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"/>
    <storeData>
        <name>
            <de>Euroboss 370H</de>
            <en>Euroboss 370H</en>
        </name>
        <functions>
            <function>$l10n_function_forageWagon</function>
        </functions>
        <specs>
            <neededPower>95</neededPower>
        </specs>
        <image>Textures/store.dds</image>
        <price>34000</price>
        <dailyUpkeep>25</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>POETTINGER</brand>
        <category>loaderWagons</category>
    </storeData>
</vehicle>
