﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="forageWagon">
	<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>Bergmann Shuttle 900 K</en>
        <de>Bergmann Shuttle 900 K</de>
    </name>
	<typeDesc>$l10n_TypeDesc_ForageWagon</typeDesc>
    <filename>data/vehicles/trailers/bergmann/bergmannShuttle900K.i3d</filename>

    <size width="4" length="12.5"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel driveMode="0" repr="0" radius="0.65" deltaY="0.0" suspTravel="0.15" spring="8" damper="20" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="1" radius="0.65" deltaY="0.0" suspTravel="0.15" spring="8" damper="20" mass="0.15" lateralStiffness="2" />
        <wheel driveMode="0" repr="2" radius="0.65" deltaY="0.0" suspTravel="0.15" spring="8" damper="20" mass="0.15" steeringAxleScale="-0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" lateralStiffness="2" />
        <wheel driveMode="0" repr="3" radius="0.65" deltaY="0.0" suspTravel="0.15" spring="8" damper="20" mass="0.15" steeringAxleScale="-0.3" steeringAxleRotMax="10" steeringAxleRotMin="-10" lateralStiffness="2" />		
    </wheels>
    <brakeForce>2</brakeForce>
	<downForce>6</downForce>
    <steeringAxleAngleScale startSpeed="5" endSpeed="30" />

    <lights count="1">
        <light1 index="10|1" />
    </lights>

	<lightCoronas>
		<lightCorona index="10|0" />
	</lightCoronas>

	<brakeLights>
		<brakeLight index="0>10|2" />
	</brakeLights>

    <fillPlanes>
        <fillPlane type="chaff">
            <node index="6|0">
                <key time="0" y="1.699" scale="0.9 0.05 1"/>
                <key time="0.1" y="1.699" scale="1.01 0.1 1"/>
                <key time="0.2" y="1.699" scale="1.01 0.2 1"/>
                <key time="0.5" y="1.699" scale="1.01 0.5 1"/>
                <key time="1" y="1.699" scale="1.01 1 1"/>
            </node>
			<node index="13">
				<key time="0" scale="0.75 0.01 1"/>
				<key time="1" scale="0.75 1.2 1"/>
			</node>
        </fillPlane>
		<fillPlane type="grass_windrow">
            <node index="6|1">
                <key time="0" y="1.699" scale="0.9 0.05 1"/>
                <key time="0.1" y="1.699" scale="1.01 0.1 1"/>
                <key time="0.2" y="1.699" scale="1.01 0.2 1"/>
                <key time="0.5" y="1.699" scale="1.01 0.5 1"/>
                <key time="1" y="1.699" scale="1.01 1 1"/>
            </node>
			<node index="13">
				<key time="0" scale="0.75 0.01 1"/>
				<key time="1" scale="0.75 1.2 1"/>
			</node>
        </fillPlane>
			<fillPlane type="wheat_windrow">
            <node index="6|2">
                <key time="0" y="1.699" scale="0.9 0.05 1"/>
                <key time="0.1" y="1.699" scale="1.01 0.1 1"/>
                <key time="0.2" y="1.699" scale="1.01 0.2 1"/>
                <key time="0.5" y="1.699" scale="1.01 0.5 1"/>
                <key time="1" y="1.699" scale="1.01 1 1"/>
            </node>
			<node index="13">
				<key time="0" scale="0.75 0.01 1"/>
				<key time="1" scale="0.75 1.2 1"/>
			</node>
        </fillPlane>
			<fillPlane type="barley_windrow">
            <node index="6|2">
                <key time="0" y="1.699" scale="0.9 0.05 1"/>
                <key time="0.1" y="1.699" scale="1.01 0.1 1"/>
                <key time="0.2" y="1.699" scale="1.01 0.2 1"/>
                <key time="0.5" y="1.699" scale="1.01 0.5 1"/>
                <key time="1" y="1.699" scale="1.01 1 1"/>
            </node>
			<node index="13">
				<key time="0" scale="0.75 0.01 1"/>
				<key time="1" scale="0.75 1.2 1"/>
			</node>
        </fillPlane>
    </fillPlanes>

	<massPerFillLevel value="0.00005" />
    <capacity>44000</capacity>

    <cuttingAreas count="1">
        <cuttingArea1 startIndex="14|0" widthIndex="14|1" heightIndex="14|2" />
    </cuttingAreas>

    <forageWgnSound file="data/vehicles/trailers/forageWagon.wav" pitchOffset="1" volume="1.0" />
    <hydraulicSound file="data/vehicles/steerable/deutz/hydraulicUp.wav" pitchOffset="1.0" volume="1.0" />	
    <fillSound file="data/maps/sounds/siloFillSound.wav" pitchOffset="1.0" volume="1.5" />
	<powerTakeoffInput index="0>19" rotSpeed="0" />
    <attacherJoint index="4" jointType="trailerLow"/>
    
	<tipReferencePoints>
        <tipReferencePoint index="0>5" width="2.5" />
    </tipReferencePoints>
	
	<tipAnimations>
        <tipAnimation speedScale="1" animationName="tipAnimationBack" dischargeStartTime="1.0" dischargeEndTime="20" >
            <dischargeParticleSystems>
				<dischargeParticleSystem type="chaff" node="13" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigChaff.i3d" />
				<dischargeParticleSystem type="grass_windrow" node="13" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigGrass.i3d" />
				<dischargeParticleSystem type="wheat_windrow" node="13" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigStraw.i3d" />
				<dischargeParticleSystem type="barley_windrow" node="13" rotation="0 0 0" position="0 0 0" file="data/vehicles/particleSystems/trailerDPSBigStraw.i3d" />
            </dischargeParticleSystems>
        </tipAnimation>
    </tipAnimations>

    <fillRootNode index="0>" />
    <exactFillRootNode index="7" />
    <fillAutoAimTargetNode index="8" />
    <fillMassNode index="0>" />

    <fillTypes fruitTypes="chaff grass_windrow wheat_windrow barley_windrow"/>

	<mouseControls>
        <mouseControl iconFilename="data/vehicles/trailers/bergmann/bergmannShuttle_chaffLid.png" mouseButton="LEFT" mouseAxis="Y" axis="AXIS_FRONTLOADER_ARM" />
    </mouseControls>

    <movingTools>
        <!-- support -->
        <movingTool index="0>9" componentJointIndex="0" anchorActor="0"/>

        <!-- chaffLid -->
		<movingTool index="17" anchorActor="0" rotSpeed="50" rotAcceleration="160" rotMax="120" rotMin="0" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mouseAxis="AXIS_FRONTLOADER_ARM" invertMouseAxis="false" speedFactor="0.3" rotationAxis="1" translationAxis="2" >
            <dependentPart index="0>18" />
        </movingTool>
		
		<movingTool index="0>10">
			<dependentPart index="0>11" />
		</movingTool>
    </movingTools>

	<movingParts>
		<!-- chaffLid hydraulics-->
        <movingPart index="0>18" referencePoint="0>17|1" referenceFrame="0>18">
			<translatingPart index="0>18|0" />
        </movingPart>
		
		<movingPart index="0>11" referencePoint="0>10|3" referenceFrame="0>20">
			<translatingPart index="0>11|0" />
        </movingPart>
	</movingParts>

    <animations>
        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="9" startTime="0" duration="0.5" startTrans="0.378 0.8 3.826" endTrans="0.378 0 3.826" />
        </animation>

        <!-- rotate pickup down/up -->
        <animation name="rotatePickup">
            <part node="15" startTime="0" duration="1.5" startRot="-45 0 0 " endRot="5 0 0" />
        </animation>
		
		<!-- backtipping -->
		<animation name="tipAnimationBack">
			<part node="0>10" startTime="0" endTime="4" startRot="0 0 0" endRot="90 0 0" />
        </animation>
    </animations>

    <support animationName="moveSupport" />

    <pickupAnimation name="rotatePickup" lowerSpeed="2" liftSpeed="-1" />

    <tipRotationNodes>
        <tipRotationNode index="12|0" rotSpeed="880"/>
        <tipRotationNode index="12|1" rotSpeed="880"/>
        <tipRotationNode index="12|2" rotSpeed="880"/>
    </tipRotationNodes>

    <components count="2">
        <component1 centerOfMass="0 0.1 -2.0" solverIterationCount="8" />
        <component2 solverIterationCount="8" />
        <joint component1="0" component2="1" index="0>9|0" rotLimit="0 0 0" transLimit="0 0 0" />
    </components>

    <schemaOverlay file="data/vehicles/schemas/implementSchema.png" fileSelected="data/vehicles/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0"/>

</vehicle>
