﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="strawBlower">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Kuhn Primor 3570</en>
        <de>Kuhn Primor 3570</de>
    </name>
    <typeDesc>$l10n_TypeDesc_StrawBlower</typeDesc>
    <filename>data/vehicles/trailers/kuhn/kuhnPrimor3570.i3d</filename>

    <size width="3.5" length="5" />
    
    <powerConsumer ptoRpm="540" neededPtoPower="37"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel  restLoad="1.1" repr="0>0" radius="0.378" initialCompression="50" suspTravel="0.07" spring="35" damper="40" mass="0.04" hasTyreTracks="true" tyreTrackAtlasIndex="1"/>
        <wheel  restLoad="1.1" repr="0>1" radius="0.378" initialCompression="50" suspTravel="0.07" spring="35" damper="40" mass="0.04" hasTyreTracks="true" tyreTrackAtlasIndex="1"/>
    </wheels>
    
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="0>0"  filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_340_55_16.i3d" />
        <dynamicallyLoadedPart node="1|1" linkNode="0>1"  filename="$data/vehicles/wheels/trelleborg/trelleborgAW305_340_55_16.i3d" />
    </dynamicallyLoadedParts>
    
    <brakeForce>0.2</brakeForce>

    <lightCoronas>
        <lightCorona index="0>4" />
    </lightCoronas>

    <brakeLights>
        <brakeLight index="0>5" />
    </brakeLights>

    <turnSignals>
        <turnSignalLeft index="0>17|0" />
        <turnSignalRight index="0>17|1" />
    </turnSignals>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>2" jointType="trailerLow" indexPTO="0>6" />
    </inputAttacherJoints>

    <allowFillFromAir value="false" />
    <capacity>1</capacity>

    <strawBlowerBaleTrigger index="0>14" />

    <strawBlowerDoor animationName="openDoor" />
    
    <strawBlowerSounds>
        <startWork file="$data/vehicles/trailers/kuhn/primorStrawBlower_start.wav" pitchOffset="1" volume3D="0.45" innerRadius="10" radius="50" />
        <work file="$data/vehicles/trailers/kuhn/primorStrawBlower_work.wav" pitchOffset="1" volume3D="0.45" innerRadius="10" radius="50" />
        <stopWork file="$data/vehicles/trailers/kuhn/primorStrawBlower_stop.wav" pitchOffset="1" volume3D="0.45" innerRadius="10" radius="50" />
    </strawBlowerSounds>

    <dynamicMountAttacherTrigger triggerNode="0>16" rootNode="0>" jointNode="0>" />

    <tipReferencePoints>
        <tipReferencePoint index="0>15" width="1" />
    </tipReferencePoints>

    <tipAnimations>
        <tipAnimation speedScale="1" animationName="tip" dischargeStartTime="2" dischargeEndTime="10" >
            <dischargeParticleSystems>
                <dischargeParticleSystem type="wheat_windrow"  node="0>9|0|0|0|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/kuhn/kuhnPrimor3570Particles.i3d" />
                <dischargeParticleSystem type="barley_windrow" node="0>9|0|0|0|1" psRootNode="0|0" position="0 0 0" rotation="0 0 0" file="$data/vehicles/particleAnimations/kuhn/kuhnPrimor3570Particles.i3d" />
            </dischargeParticleSystems>
            <tipEffect>
                <effectNode node="0|0|0" linkNode="0>9|0|0|0|1" position="0 0 0" filename="$data/vehicles/particleAnimations/kuhn/kuhnPrimor3570.i3d" fadeTime="0.5"/>
            </tipEffect>
        </tipAnimation>
    </tipAnimations>

    <tipRotationNodes>
        <tipRotationNode index="0>12" rotSpeed="-250" type="trailer" rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </tipRotationNodes>

    <fillTypes fillTypes="wheat_windrow barley_windrow" />

    <support animationName="moveSupport" />

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>3" startTime="0" duration="0.6" startTrans="0.2659 0.408 1.088" endTrans="0.2659 0 1.088" />
        </animation>
        <!-- open the door -->
        <animation name="openDoor">
            <part node="0>7" startTime="0" duration="5" startRot="0 0 0" endRot="-110 0 0" />
        </animation>
        <!-- tip animation -->
        <animation name="tip">
            <part node="0>9|0|0" startTime="0" duration="2" startRot="0 0 0" endRot="0 0 -21" />
        </animation>
    </animations>

    <movingTools>
        <!-- backDoor -->
        <movingTool index="0>7" >
            <dependentPart index="0>8" />
        </movingTool>
        <!-- pipe mid part -->
        <movingTool index="0>9|0|0">
            <dependentPart index="0>9|0|1" />
            <dependentPart index="0>9|0|0|0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- backDoor hydraulics -->
        <movingPart index="0>8" referencePoint="0>7|0" referenceFrame="0>">
            <translatingPart index="0>8|0" />
        </movingPart>
        <movingPart index="0>9|0|1" referencePoint="0>9|0|0|1" referenceFrame="0>9|0">
            <translatingPart index="0>9|0|1|0" />
        </movingPart>
        <movingPart index="0>9|0|0|0" referencePoint="0>9|0|2" localReferencePoint="0>9|0|0|0|0" referenceFrame="0>9|0|0">
            <dependentPart index="0>9|0|2" />
        </movingPart>
        <movingPart index="0>9|0|2" referencePoint="0>9|0|0|0|0" referenceFrame="0>9|0|0"/>
    </movingParts>

    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
    </driveGroundParticleSystems> 
    
    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="1">
        <component1 centerOfMass="0 0.45 -0.6" 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>
