﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="fliegl">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved, Blackline Series (Melman14, Toto).</annotation>
    <name>
        <en>Fliegl TDK 160 Holzaufbau</en>
        <de>Fliegl TDK 160 Holzaufbau</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Tipper</typeDesc>
    <filename>holzaufbau.i3d</filename>

    <size width="3.5" length="10" lengthOffset="-0.5" />

    <wheels autoRotateBackSpeed="2.0">
        <wheel repr="0>0"                   radius="0.535" width="0.37" initialCompression="55" suspTravel="0.20" spring="14" damper="20" frictionScale="1.5" mass="0.05" />
        <wheel repr="0>1" driveNode="0>1|0" radius="0.535" width="0.37" initialCompression="55" suspTravel="0.20" spring="14" damper="20" frictionScale="1.5" mass="0.05" />
        <wheel repr="0>2"                   radius="0.535" width="0.37" initialCompression="55" suspTravel="0.20" spring="14" damper="20" frictionScale="1.5" mass="0.05" hasTyreTracks="true" tyreTrackAtlasIndex="3" />
        <wheel repr="0>3"                   radius="0.535" width="0.37" initialCompression="55" suspTravel="0.20" spring="14" damper="20" frictionScale="1.5" mass="0.05" hasTyreTracks="true" tyreTrackAtlasIndex="3" />
    </wheels>

    <dynamicallyLoadedParts>
        <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>7|7|0" filename="$data/vehicles/shared/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>7|7|1" filename="$data/vehicles/shared/wheelChock01.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>0.7</brakeForce>

    <capacity>14000</capacity>

    <massPerFillLevel value="0.00005" />

    <lightCoronas>
        <lightCorona index="0>7|3" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>7|4" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>7|5|0" />
        <turnSignalRight index="0>7|5|1" />
    </turnSignals>

    <reverseLights>
        <reverseLight index="0>7|6" />
    </reverseLights>

    <warningSigns>
		<sign index="0>7|9|0" trigger="0>7|9|2|0" isVisible="true"/>
		<sign index="0>7|9|1" trigger="0>7|9|2|1" isVisible="true"/>
	</warningSigns>

    <fillVolumes>
        <fillVolume index="0>7|0|0|0|5|0" />
    </fillVolumes>

    <fillVolumeHeights>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>7|0|0|0|7|0" />
            <refNode index="0>7|0|0|0|7|1" />
            <node index="0>7|0|0|0|4|0|1" baseScale="1 1 1.23" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>7|0|0|0|4|0|0" baseScale="1 0.1 1.23" />
        </fillVolumeHeight>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>7|0|0|0|8|0" />
            <refNode index="0>7|0|0|0|8|1" />
            <node index="0>7|0|0|0|4|1|1" baseScale="1 1 1.23" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>7|0|0|0|4|1|0" baseScale="1 0.1 1.23" />
        </fillVolumeHeight>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>7|0|0|0|9|0" />
            <refNode index="0>7|0|0|0|9|1" />
            <node index="0>7|0|0|0|4|2|1" baseScale="1.04 1 1" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>7|0|0|0|4|2|0" baseScale="2 0.1 1" />
        </fillVolumeHeight>
        <fillVolumeHeight fillVolumeId="1">
            <refNode index="0>7|0|0|0|9|0" />
            <refNode index="0>7|0|0|0|9|1" />
            <node index="0>7|0|0|0|4|3|1" baseScale="1 1 1" transAxis="0 1 0" transMax="0 0.05 0" />
            <node index="0>7|0|0|0|4|3|0" baseScale="0.8 0.2 1" />
        </fillVolumeHeight>
    </fillVolumeHeights>

    <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>4" jointType="trailer" attacherHeight="1" />
    </inputAttacherJoints>

    <attacherJoints>
        <attacherJoint index="0>5" jointType="trailer" maxRotLimit="10 80 80" minRotRotationOffset="0" allowsJointLimitMovement="false" />
    </attacherJoints>

    <tipReferencePoints>
        <tipReferencePoint index="0>6|0" width="5" />
        <tipReferencePoint index="0>6|1" width="5" />
        <tipReferencePoint index="0>6|2" width="2.5" />
        <tipReferencePoint index="0>6|2" width="0.5" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation closeSpeedspeedScale="-1.7" animationName="tipAnimationLeft" dischargeStartTime="1" dischargeEndTime="10">
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>7|0|0|0|4|0|1" materialType="unloading" materialTypeId="3" position="0 0 0" filename="$data/vehicles/particleAnimations/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>7|0|0|0|4|0|1" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="$data/vehicles/particleAnimations/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>7|0|0|0|4|0|0" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>7|0|0|0|4|0|0" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>7|0|0|0|4|0|0" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>7|0|0|0|4|0|0" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>7|0|0|0|4|0|0" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>7|0|0|0|6|0" width="1.0" length="4.0" />
            <fillVolumeHeight index="1"/>
        </tipAnimation>
        <tipAnimation closeSpeedspeedScale="-1.7" animationName="tipAnimationRight" dischargeStartTime="1" dischargeEndTime="10">
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>7|0|0|0|4|1|1" materialType="unloading" materialTypeId="3" position="0 0 0" filename="$data/vehicles/particleAnimations/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
                <effectNode node="0|0|1" linkNode="0>7|0|0|0|4|1|1" materialType="smoke"     materialTypeId="1" position="0 0 0" filename="$data/vehicles/particleAnimations/brantner/brantnerE8041.i3d" fadeTime="0.5"/>
            </tipEffect>
            <dischargeParticleSystems>
                <dischargeParticleSystem type="chaff"     node="0>7|0|0|0|4|1|0" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>7|0|0|0|4|1|0" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>7|0|0|0|4|1|0" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>7|0|0|0|4|1|0" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>7|0|0|0|4|1|0" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/brantner/brantnerE8041Particles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>7|0|0|0|6|1" width="1.0" length="4.0" />
            <fillVolumeHeight index="2"/>
        </tipAnimation>
        <tipAnimation closeSpeedspeedScale="-2" animationName="tipAnimationBack" dischargeStartTime="1" dischargeEndTime="15" >
            <tipEffect fillTypes="wheat barley maize rape">
                <effectNode node="0|0|0" linkNode="0>7|0|0|0|4|2|1" 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>7|0|0|0|4|2|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>7|0|0|0|4|2|0" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>7|0|0|0|4|2|0" psRootNode="0|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>7|0|0|0|4|2|0" psRootNode="0|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>7|0|0|0|4|2|0" psRootNode="0|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>7|0|0|0|4|2|0" psRootNode="0|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>7|0|0|0|6|2" width="1.0" length="3.0" />
            <fillVolumeHeight index="3"/>
        </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>7|0|0|0|4|3|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>7|0|0|0|4|3|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>7|0|0|0|4|3|0" psRootNode="1|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="potato"    node="0>7|0|0|0|4|3|0" psRootNode="1|1" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="sugarBeet" node="0>7|0|0|0|4|3|0" psRootNode="1|2" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="woodChips" node="0>7|0|0|0|4|3|0" psRootNode="1|3" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
                <dischargeParticleSystem type="silage"    node="0>7|0|0|0|4|3|0" psRootNode="1|4" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/shared/unloadingBackParticles.i3d" />
            </dischargeParticleSystems>
            <fillVolumeDischargeInfo index="0>7|0|0|0|6|2" width="1.0" length="1.4" />
            <fillVolumeHeight index="4"/>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="0>8" />
    <fillAutoAimTargetNode index="0>9" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="wheat rape maize barley chaff potato sugarBeet silage woodChips"/>

    <movingTools>
        <!-- support -->
        <movingTool index="0>7|2" componentJointIndex="0" anchorActor="0"/>
        <!-- tipping -->
        <movingTool index="0>7|0">
            <dependentPart index="0>7|1" />
        </movingTool>
        <movingTool index="0>7|0|0">
            <dependentPart index="0>7|1" />
        </movingTool>
        <movingTool index="0>7|0|0|0">
            <dependentPart index="0>7|1" />
        </movingTool>

        <movingTool index="0>7|0|0|0|4|0">
            <dependentPart index="0>7|0|0|0|4|1" />
        </movingTool>

        <!-- grain door -->
        <movingTool index="0>7|0|0|0|3|0|0" >
            <dependentPart index="0>7|0|0|0|3|0|1" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>7|1" referencePoint="0>7|0|0|0|0" referenceFrame="0>7|0|0|0|0" limitedAxis="3" >
            <dependentPart index="0>7|1|0" />
        </movingPart>
        <movingPart index="0>7|1|0" referencePoint="0>7|0|0|0|0" referenceFrame="0>7|0|0|0|0" limitedAxis="1" >
            <translatingPart index="0>7|1|0|0" />
            <translatingPart index="0>7|1|0|0|0" />
            <translatingPart index="0>7|1|0|0|0|0" />
            <translatingPart index="0>7|1|0|0|0|0|0" />
        </movingPart>

        <!-- graindoor opener -->
        <movingPart index="0>7|0|0|0|3|0|1" localReferencePoint="0>7|0|0|0|3|0|1|0" referencePoint="0>7|0|0|0|3|0|0" referenceFrame="0>7|0|0|0|3|0|0" playSound="false">
            <dependentPart index="0>7|0|0|0|3|0|1|0" />
        </movingPart>
        <movingPart index="0>7|0|0|0|3|0|1|0" referencePoint="0>7|0|0|0|3|0|0" referenceFrame="0>7|0|0|0|3|0|2" scaleZ="true" playSound="false" />
    </movingParts>

    <animations>
        <!-- tipping left -->
        <animation name="tipAnimationLeft">
            <part node="0>7|0|0|0|1" startTime="0" endTime="0.4" startRot="0 0 0" endRot="0 0 35" />
            <part node="0>7|0" startTime="0.4" endTime="7.4" startRot="0 0 0" endRot="0 0 -35" />
            <part node="0>7|0|0|0|4|0|1" startTime="0.4" endTime="7.4" startRot="0 0 0" endRot="0 0 35" />
        </animation>
        <!-- tipping right -->
        <animation name="tipAnimationRight">
            <part node="0>7|0|0|0|2" startTime="0" endTime="0.4" startRot="0 0 0" endRot="0 0 -35" />
            <part node="0>7|0|0" startTime="0.4" endTime="7.4" startRot="0 0 0" endRot="0 0 35" />
            <part node="0>7|0|0|0|4|1|1" startTime="0.4" endTime="7.4" startRot="0 0 0" endRot="0 0 35" />
        </animation>
        <!-- tipping back -->
        <animation name="tipAnimationBack">
            <part node="0>7|0|0|0|3"   startTime="0" endTime="0.4" startRot="0 0 0" endRot="40 0 0" />
            <part node="0>7|0|0|0"     startTime="0.4" endTime="13" startRot="0 0 0" endRot="-40 0 0" />
            <part node="0>7|0|0|0|4|2|1" startTime="0.4" endTime="13" startRot="0 0 0" endRot="40 0 0" />
        </animation>
        <!-- tipping with opened graindoor -->
        <animation name="tipAnimationGrainDoor">
            <part node="0>7|0|0|0|3|0|0" startTime="0" endTime="0.6" startTrans="0 0 0" endTrans="0 0.17 0" />
            <part node="0>7|0|0|0"     startTime="7" endTime="35"  startRot="0 0 0"   endRot="-40 0 0" />
            <part node="0>7|0|0|0|4|3|1" startTime="7" endTime="35" startRot="0 0 0" endRot="40 0 0" />
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>7|2" startTime="0" endTime="0.1" startTrans="-0.26798 0.98896 1.83274" endTrans="-0.26798 0.60641 1.83274" />
            <!-- wheel chocks -->
            <part node="0>1|1" startTime="0" endTime="0.05" visibility="false" />
            <part node="0>7|7" startTime="0" endTime="0.05" visibility="true" />
            <part node="0>1|1" startTime="0.05" endTime="0.1" visibility="true" />
            <part node="0>7|7" startTime="0.05" endTime="0.1" visibility="false" />
			
			 <!-- Plane -->
            <animation name="toggleCover">
            <part node="0>7|0|0|0|12" startTime="0"    endTime="0.05" visibility="false" />
            <part node="0>7|0|0|0|12" startTime="0.05" endTime="0.1"  visibility="true" />
	        <part node="0>7|0|0|0|11" startTime="0"    endTime="0.05" visibility="true" />
            <part node="0>7|0|0|0|11" 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 -1" solverIterationCount="15" />
    </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>
