﻿<?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>Fliegl ASS 298</en>
        <de>Fliegl ASS 298</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>data/vehicles/trailers/fliegl/flieglASS2101.i3d</filename>

    <size width="3.5" length="14" lengthOffset="-0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="1.4" repr="0>0" radius="0.675" initialCompression="40" suspTravel="0.2" spring="30" damper="20" mass="0.25" />
        <wheel  restLoad="1.4" repr="0>1" radius="0.675" initialCompression="40" suspTravel="0.2" spring="30" damper="20" mass="0.25" />
        <wheel  restLoad="1.4" repr="0>2" radius="0.675" initialCompression="40" suspTravel="0.2" spring="30" damper="20" mass="0.25" hasTyreTracks="true" tyreTrackAtlasIndex="3"/>
        <wheel  restLoad="1.4" repr="0>3" radius="0.675" initialCompression="40" suspTravel="0.2" spring="30" damper="20" mass="0.25" hasTyreTracks="true" tyreTrackAtlasIndex="3"/>
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|0" linkNode="0>0" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_710_45_26_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>1" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_710_45_26_5.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>2" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_710_45_26_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>3" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_710_45_26_5.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>1</brakeForce>

    <capacity>47000</capacity>

    <lightCoronas>
        <lightCorona index="0>11|1" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>11|2" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>11|3|0" />
        <turnSignalRight index="0>11|3|1" />
    </turnSignals>

    <reverseLights>
        <reverseLight index="0>11|4" />
    </reverseLights>

    <fillVolumes>
        <fillVolume index="0>8|0" >
            <deformNode index="0>13|1|2" />
            <deformNode index="0>13|1|3" />
            <deformNode index="0>19|0" />
            <deformNode index="0>19|1" />
            <deformNode index="0>19|2" />
            <deformNode index="0>19|3" />
            <deformNode index="0>19|4" />
            <deformNode index="0>19|5" />
            <deformNode index="0>19|6" />
            <deformNode index="0>19|7" />
            <deformNode index="0>19|8" />
            <deformNode index="0>19|9" />
        </fillVolume>
    </fillVolumes>

    <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>20|0" />
            <refNode index="0>20|1" />
            <node index="0>9|0" baseScale="1.08 1 1" transAxis="0 1 0" />
            <node index="0>9|1" baseScale="2.1 0.1 1" scaleAxis="0 1 0" transAxis="0 0 0" />
        </fillVolumeHeight>
    </fillVolumeHeights>

    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.9" volume="1.0" />
    <fillSound file="$data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />

    <inputAttacherJoints>
        <inputAttacherJoint index="0>4" jointType="semitrailer"/>
    </inputAttacherJoints>

    <tipReferencePoints>
        <tipReferencePoint index="0>7" width="5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation openSpeedScale="1" closeSpeedScale="-2" animationName="tipAnimationBack" dischargeStartTime="0" dischargeEndTime="18.5" doorAnimationName="tipAnimationBackDoor" doorAnimationOpenSpeedScale="1" doorAnimationCloseSpeedScale="-1.2" >
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>9|0" materialType="unloading" materialTypeId="3" position="0 0 0" filename="$data/vehicles/particleAnimations/shared/unloadingBack.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>9|0" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="$data/vehicles/particleAnimations/shared/unloadingBack.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>9|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>9|1" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>9|1" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>9|1" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>9|1" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>18" width="1.0" length="1.4" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>5" />
    <fillAutoAimTargetNode index="0>6" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet silage woodChips"/>

    <mouseControls>
        <mouseControl iconFilename="$dataS2/menu/moveControls/topDoor.png" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
        <!-- tipping -->
        <movingTool index="0>11">
            <dependentPart index="0>10" />
        </movingTool>
        <movingTool index="0>14">
            <dependentPart index="0>14|0" />
        </movingTool>

        <!-- flap -->
        <movingTool index="0>13|1|1" rotSpeed="45" rotAcceleration="280" rotMax="0" rotMin="-84.3272" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" invertMouseAxis="true" speedFactor="0.3" rotationAxis="1" >
            <dependentPart index="0>13|1|0" />
        </movingTool>
        <!--movingTool index="0>6" transSpeed="4.82" transAcceleration="29.99" transMax="4" transMin="-5" axis="AXIS_FRONTLOADER_ARM" invertAxis="true" invertMouseAxis="true" speedFactor="0.3" translationAxis="3" /-->
    </movingTools>

    <movingParts>
        <movingPart index="0>10" referencePoint="0>11|0" referenceFrame="0>15" >
            <translatingPart index="0>10|0" />
        </movingPart>

        <movingPart index="0>14|0" referencePoint="0>13|2" localReferencePoint="0>14|0|0" referenceFrame="0>16" >
            <dependentPart index="0>14|0|0" />
        </movingPart>

        <movingPart index="0>14|0|0" referencePoint="0>13|2" referenceFrame="0>17" >
        </movingPart>

        <movingPart index="0>13|1|0" referencePoint="0>13|1|1|0" referenceFrame="0>13|1|1|0" >
            <translatingPart index="0>13|1|0|0" />
        </movingPart>
    </movingParts>

    <animations>
        <!-- tipping back -->
        <animation name="tipAnimationBack">
            <part node="0>13" startTime="1" endTime="9" startTrans="0.001 1.895 3.15" endTrans="0.001 1.895 -1.85831" />
            <part node="0>14" startTime="1" endTime="9" startRot="0 1 0" endRot="0 -40 0" />

            <part node="0>13|0" startTime="9" endTime="18" startTrans="0 -0.003 1.945" endTrans="0 -0.003 0.501" />
            <part node="0>13|1" startTime="9" endTime="18" startTrans="0 0.507 1.912" endTrans="0 0.507 -1.343" />   <!-- -1.643" /-->

            <part node="0>13|1|2" startTime="1" endTime="18" startTrans="-1.134 0.706 -0.320" endTrans="-1.134 0.706 -0.321" />
            <part node="0>13|1|3" startTime="1" endTime="18" startTrans="1.126 0.706 -0.320" endTrans="1.126 0.706 -0.321" />
            <part node="0>19|0" startTime="1" endTime="18" startTrans="-1.15 3.108 1.213" endTrans="-1.15 3.108 -4.475" />
            <part node="0>19|1" startTime="1" endTime="18" startTrans="1.143 3.108 1.213" endTrans="1.143 3.108 -4.475" />
            <part node="0>19|2" startTime="1" endTime="18" startTrans="-1.15 3.108 -2.229" endTrans="-1.15 3.108 -4.575" />
            <part node="0>19|3" startTime="1" endTime="18" startTrans="1.143 3.108 -2.229" endTrans="1.143 3.108 -4.575" />
            <!--part node="0>19|4" startTime="9" endTime="18" startTrans="-1.15 3.108 -4.675" endTrans="-1.15 3.108 -4.675" />
            <part node="0>19|5" startTime="9" endTime="18" startTrans="1.143 3.108 -2.675" endTrans="1.143 3.108 -4.675" /-->
        </animation>
        <animation name="tipAnimationBackDoor">
            <part node="0>11" startTime="0" endTime="2" startRot="0 0 0" endRot="90 0 0" />

            <part node="0>19|6" startTime="0" endTime="0.2" startTrans="-1.15 3.108 -5.098" endTrans="-1.15 3.108 -4.675" />
            <part node="0>19|7" startTime="0" endTime="0.2" startTrans="1.143 3.108 -5.098" endTrans="1.143 3.108 -4.675" />
            <part node="0>19|8" startTime="0" endTime="0.2" startTrans="-1.15 3.108 -5.377" endTrans="-1.15 3.108 -4.72" />
            <part node="0>19|9" startTime="0" endTime="0.2" startTrans="1.143 3.108 -5.377" endTrans="1.143 3.108 -4.72" />
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>12" startTime="0" endTime="0.1" startTrans="0 0.35 1.91793" endTrans="0 -0.137 1.91793" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <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" />
    </driveGroundParticleSystems>

    <components count="1">
        <component1 centerOfMass="0 0.65 0" 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"/>

</vehicle>
