﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="trailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Fliegl TMK 266 Bull</en>
        <de>Fliegl TMK 266 Bull</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>data/vehicles/trailers/fliegl/flieglTMK266Bull.i3d</filename>

    <size width="3.5" length="10" lengthOffset="-0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="1.5" repr="0>0"                   radius="0.585" width="0.585" initialCompression="50" suspTravel="0.15" spring="35" damper="20" mass="0.177" />
        <wheel  restLoad="1.5" repr="0>1" driveNode="0>1|0" radius="0.585" width="0.585" initialCompression="50" suspTravel="0.15" spring="35" damper="20" mass="0.177" />
        <wheel  restLoad="1.5" repr="0>2"                   radius="0.585" width="0.585" initialCompression="50" suspTravel="0.15" spring="35" damper="20" mass="0.177" hasTyreTracks="true" tyreTrackAtlasIndex="3"/>
        <wheel  restLoad="1.5" repr="0>3"                   radius="0.585" width="0.585" initialCompression="50" suspTravel="0.15" spring="35" damper="20" mass="0.177" hasTyreTracks="true" tyreTrackAtlasIndex="3"/>
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|0" linkNode="0>0"   filename="$data/vehicles/wheels/trelleborg/trelleborgT404_600_50_22_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>1|0" filename="$data/vehicles/wheels/trelleborg/trelleborgT404_600_50_22_5.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>2"   filename="$data/vehicles/wheels/trelleborg/trelleborgT404_600_50_22_5.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>3"   filename="$data/vehicles/wheels/trelleborg/trelleborgT404_600_50_22_5.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>1|1|0" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>1|1|1" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>6|5|0" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>6|5|1" filename="$data/vehicles/shared/wheelChock01.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>1</brakeForce>
    <steeringAxleAngleScale startSpeed="5" endSpeed="70" />

    <capacity>32000</capacity>

    <lightCoronas>
        <lightCorona index="0>6|2|1|3" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>6|2|1|4" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>6|2|1|5|0" />
        <turnSignalRight index="0>6|2|1|5|1" />
    </turnSignals>

    <reverseLights>
        <reverseLight index="0>6|2|1|6" />
    </reverseLights>

    <fillVolumes>
        <fillVolume index="0>6|2|3|0" maxDelta="2.0">
            <deformNode index="0>6|2|9|0" />
            <deformNode index="0>6|2|9|1" />
            <deformNode index="0>6|2|9|2" />
            <deformNode index="0>6|2|9|3" />
            <deformNode index="0>6|2|9|4" />
            <deformNode index="0>6|2|9|5" />
        </fillVolume>
    </fillVolumes>

    <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>6|2|10|0" />
            <refNode index="0>6|2|10|1" />
            <node index="0>6|2|4|0" baseScale="1.02 1 1" transAxis="0 1 0" />
            <node index="0>6|2|4|2" baseScale="2.19 0.1 1" scaleAxis="0 0.5 0" transAxis="0 0.5 0" />
        </fillVolumeHeight>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>6|2|10|0" />
            <refNode index="0>6|2|10|1" />
            <node index="0>6|2|4|1" baseScale="1 1 1" scaleAxis="0 0 0" transAxis="0 0 0" />
            <node index="0>6|2|4|3" baseScale="0.2 0.1 0.2" scaleAxis="0 0 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>6|0|0" jointType="trailer" attacherHeight="0.95" />
    </inputAttacherJoints>

    <attacherJoints>
        <attacherJoint index="0>4" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" />
    </attacherJoints>

    <tipReferencePoints>
        <tipReferencePoint index="0>5" width="2.5" />
        <tipReferencePoint index="0>5" width="0.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="0.5" dischargeEndTime="13" doorAnimationName="tipAnimationBackDoor" doorAnimationOpenSpeedScale="1" doorAnimationCloseSpeedScale="-1.2" >
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>6|2|4|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>6|2|4|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>6|2|4|2" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>6|2|4|2" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>6|2|4|2" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>6|2|4|2" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>6|2|4|2" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>6|2|8|0" width="1.0" length="1.4" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
        <tipAnimation speedScale="1" closeSpeedScale="-3" animationName="tipAnimationGrainDoor" dischargeStartTime="0.3" dischargeEndTime="40" >
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="1|0|0" linkNode="0>6|2|4|1" materialType="unloading" materialTypeId="3" position="0 0 0" filename="$data/vehicles/particleAnimations/shared/unloadingBack.i3d" fadeTime="0.5"/>
                <effectNode node="1|0|1" linkNode="0>6|2|4|1" 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>6|2|4|3" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>6|2|4|3" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>6|2|4|3" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>6|2|4|3" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>6|2|4|3" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>6|2|8|1" width="0.2" length="0.2" />
            <fillVolumeHeight index="2"/>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>7" />
    <fillAutoAimTargetNode index="0>8" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet silage woodChips"/>

    <movingTools>
        <!-- tipping -->
        <movingTool index="0>6|2">
            <dependentPart index="0>6|3" />
        </movingTool>
        <movingTool index="0>6|2|1">
            <dependentPart index="0>6|2|2" />
        </movingTool>

        <movingTool index="0>6|2|1|1|0">
            <dependentPart index="0>6|2|1|1|1" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>6|3" referencePoint="0>6|2|0" referenceFrame="0>6|2|0" >
            <translatingPart index="0>6|3|0" />
            <translatingPart index="0>6|3|0|0" />
            <translatingPart index="0>6|3|0|0|0" />
        </movingPart>
        <movingPart index="0>6|2|2" referencePoint="0>6|2|1|0" referenceFrame="0>6|2|5" >
            <translatingPart index="0>6|2|2|0" />
        </movingPart>

        <!-- graindoor opener -->
        <movingPart index="0>6|2|1|1|1" localReferencePoint="0>6|2|1|1|1|0" referencePoint="0>6|2|1|1|0" referenceFrame="0>6|2|1|1" playSound="false">
            <dependentPart index="0>6|2|1|1|1|0" />
        </movingPart>
        <movingPart index="0>6|2|1|1|1|0" referencePoint="0>6|2|1|1|0" referenceFrame="0>6|2|1|1|2" scaleZ="true" playSound="false" />
    </movingParts>

    <animations>
        <!-- tipping back -->
        <animation name="tipAnimationBack">
            <part node="0>6|2"     startTime="2" endTime="12" startRot="0 0 0" endRot="-30 0 0" />
            <part node="0>6|2|4|0" startTime="2" endTime="12" startRot="0 0 0" endRot="30 0 0" />
        </animation>

        <animation name="tipAnimationBackDoor">
            <part node="0>6|2|1" startTime="0" endTime="2" startRot="0 0 0" endRot="90 0 0" />

            <part node="0>6|2|9|0" startTime="0" endTime="0.2" startTrans="-1.138 3.108 -2.799" endTrans="-1.138 3.108 -2.599" />
            <part node="0>6|2|9|1" startTime="0" endTime="0.2" startTrans="1.143 3.108 -2.799" endTrans="1.143 3.108 -2.599" />
            <part node="0>6|2|9|2" startTime="0" endTime="0.2" startTrans="-1.138 3.108 -3.22" endTrans="-1.138 3.108 -2.699" />
            <part node="0>6|2|9|3" startTime="0" endTime="0.2" startTrans="1.143 3.108 -3.22" endTrans="1.143 3.108 -2.699" />
            <part node="0>6|2|9|4" startTime="0" endTime="0.2" startTrans="-1.138 3.108 -3.627" endTrans="-1.138 3.108 -2.799" />
            <part node="0>6|2|9|5" startTime="0" endTime="0.2" startTrans="1.143 3.108 -3.627" endTrans="1.143 3.108 -2.799" />
        </animation>

        <!-- tipping with opened graindoor -->
        <animation name="tipAnimationGrainDoor">
            <part node="0>6|2|1|1|0" startTime="0" endTime="0.6" startTrans="0 0 0" endTrans="0 0.21 0" />
            <part node="0>6|2"       startTime="7" endTime="35"  startRot="0 0 0"   endRot="-30 0 0" />
            <part node="0>6|2|4|1"   startTime="7" endTime="35"  startRot="0 0 0"   endRot="30 0 0" />
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>6|4" startTime="0" endTime="0.1" startTrans="-0.21467 0.4 2.74685" endTrans="-0.21467 0 2.74685" />
            <part node="0>1|1" startTime="0" endTime="0.05" visibility="false" />
            <part node="0>6|5" startTime="0" endTime="0.05" visibility="true" />
            <part node="0>1|1" startTime="0.05" endTime="0.1" visibility="true" />
            <part node="0>6|5" startTime="0.05" endTime="0.1" visibility="false" />
        </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.75" 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>D